Last active
August 29, 2015 14:02
-
-
Save GregMalick/71bf4e5adf41e8bda208 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lx | |
import lxu.command | |
import traceback | |
class CmdMyCustomCommand (lxu.command.BasicCommand): | |
def cmd_Flags (self): | |
return lx.symbol.fCMD_MODEL | lx.symbol.fCMD_UNDO | |
def cmd_Enable (self,msg): | |
return True | |
def cmd_Interact (self): | |
pass | |
def __init__(self): | |
lxu.command.BasicCommand.__init__(self) | |
def basic_Execute (self, msg, flags): | |
try: | |
// Code something here | |
strParm = 'TEST' | |
lx.command("another", parm1=strParm ) | |
except: | |
lx.out(traceback.format_exc()) | |
lx.bless (CmdMyCustomCommand, "myCommand") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A code "shell" of a MODO python API Command