Hi Everyone ,
Is there a way to set key with Python in APEX Animate state on an AbstractController (also is there a way to select them)?
Thanks in advance,
Ashraf
apex.ui.statecommandutils.updateControls()for that.
edward
There's no docs yet for this but you can useapex.ui.statecommandutils.updateControls()for that.
import hou import apex # Select the controller so that it brings it up in the animation editor controls = ['/box.char/Base.rig/slider'] apex.ui.selectionmanager.utils.sendControlSelection(controls, controls_in_tree_format=False) # Sets a value on the controller vals = apex.ParmDict() vals['x'] = hou.frame() # change this to see different values apex.ui.statecommandutils.updateControls({'/box.char/Base.rig': vals}, controls) # Tell the playbar to set a key on the scoped channels hou.hscript("chcommit")