Atom Posted October 27, 2015 Share Posted October 27, 2015 (edited) Hi All, I am trying to auto-configure the joints in my FBX agent rig. By default the FBX rig has no joint configuration thus it can not participiate in a H15 ragdoll state. I have manually added an Agent Configure Joints node into my agent setup network. After that node I have placed a python code node. In the python node I can get a list of all the bones via buildTransformMenu but I am not sure of their hierarchy. How would I determine what bone is the parent and what bone is the child given only a list of bone names? # Place this Python node after Agent Configure Joints node. import crowdstoolutils lst = crowdstoolutils.buildTransformMenu(hou.pwd()) print lst node = hou.pwd() target_node = node.inputs()[0] nl = target_node.parm('num_limits').eval() for index in range(0,(nl-1)): parm_name = "enable%d" % index target_node.parm(parm_name).set(1) parm_name = "beginup_range%d" % index target_node.parm(parm_name).set(-180) parm_name = "endup_range%d" % index target_node.parm(parm_name).set(180) parm_name = "beginout_range%d" % index target_node.parm(parm_name).set(-180) parm_name = "endout_range%d" % index target_node.parm(parm_name).set(180) Edited October 27, 2015 by Atom Quote Link to comment Share on other sites More sharing options...
cwhite Posted October 27, 2015 Share Posted October 27, 2015 There are a ton of HOM functions for agent primitives: http://www.sidefx.com/docs/houdini15.0/hom/hou/Agent#rig, and hou.AgentRig is probably what you're looking for Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.