Difference between revisions of "TomDym"

From The Foundry MODO SDK wiki
Jump to: navigation, search
(Blanked the page)
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
=== DoWhileUserIsIdle ===
//If you try to execute a script while holding down a modifier like ctrl or shift, it will postpone execution until you release the modifier
import lx, lxifc
class visitor(lxifc.Visitor):                 
    def __init__(self):    # The initial setup method
    def vis_Evaluate(self):                         
pSrv = lx.service.Platform()
vis = visitor()
com_visitor = lx.object.Unknown(vis)
pSrv.DoWhenUserIsIdle(com_visitor, lx.symbol.fUSERIDLE_MODIFIER_KEYS_UP)
//Too cancel it you need to pass exactly the same com object and flags
pSrv.CancelDoWhenUserIsIdle(com_visitor, lx.symbol.fUSERIDLE_MODIFIER_KEYS_UP )
=== Toggle Command ===
lx.eval('tool.set falloff.linear ?+')
=== Path of Selected Preset Item ===
ppaths = lxu.select.PresetPathSelection().current()
print ppaths

Latest revision as of 11:20, 24 October 2019