A little Python tool I'm working on to draw poses for bendy characters in the APEX Scene Animate node.
Roy Ranheim Kristoffersen
Cool! Please tell a bit more on how you achived that.
citizen
Looks good! Does it preserve "bone" length?
citizen
The resulting pose should be a scaled up/down version of the drawn curve, with the start/end points on the same line determined by the drawn curve.
citizen
I was having in mind something like this:
danfitz82May I ask how you load the custom code into APEX Scene Animate? Thanks.
the custom code is loaded by the APEX Scene Animate node to act as a sort of sub-tool.
johnlilpy
May I ask how you load the custom code into APEX Scene Animate? Thanks.
def load(viewer_state): return State(viewer_state)
import stateutils import apex.ui.statecommandutils as scu import hou viewer = scu.getSceneViewer() kwargs = {} viewer.runStateCommand("getState", kwargs) state = kwargs['state'] scu.startTool("noadapextools.drawtool", kwargs)
Traceback (most recent call last): File "C:\PROGRA~2/SIDEEF~1/HOUDIN~1.512/houdini/python3.11libs\viewerstate\utils.py", line 1079, in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "C:\PROGRA~2/SIDEEF~1/HOUDIN~1.512/houdini/python3.11libs\viewerstate\interface.py", line 391, in onCommand state.onCommand(kwargs["args"]) File "C:\PROGRA~2/SIDEEF~1/HOUDIN~1.512/packages/apex/viewer_states\apexanimate.py", line 5462, in onCommand self.loadAndSwitchToTool(module_name, args.get('on_activate_kwargs', None)) File "C:\PROGRA~2/SIDEEF~1/HOUDIN~1.512/packages/apex/viewer_states\apexanimate.py", line 5611, in loadAndSwitchToTool self.setActiveTool(toolname=toolmodulename, on_activate_kwargs=on_activate_kwargs) File "C:\PROGRA~2/SIDEEF~1/HOUDIN~1.512/packages/apex/viewer_states\apexanimate.py", line 2473, in setActiveTool self._loadToolHUDSettings() File "C:\PROGRA~2/SIDEEF~1/HOUDIN~1.512/packages/apex/viewer_states\apexanimate.py", line 2338, in _loadToolHUDSettings self.hud_parameter_panel.loadBakeParmsFromConfig(the_config, prefix) ^^^^^^^^^^ UnboundLocalError: cannot access local variable 'the_config' where it is not associated with a value
JoshRizzo
Unfortunatly this breaks in 21.0 given this error: