How to procedurally create X number of bones?

   1216   2   0
User Avatar
Member
21 posts
Joined: Nov. 2008
Offline
Hello, I'm trying to make an OTL that basically creates a spline IK system, and make it so that you can specify how many joints to use in your joint system, via an attribute on the OTL. I thought this would've been the kind of thing Houdini excels at, but I've been having a hard time finding examples of creating X number of objects. And I can't seem to use for loops in the context I create joints, so that seems to not be an option. I'm starting to think that I need to use a Python node, but I'm not sure that it can be triggered via updates to the OTL attribute, like I would do with PyQt. But I couldn't find many examples or references for creating joints via Python in Houdini. Would anyone be able to help me out, or point me to some relevant examples of creating N number of objects procedurally? Thanks!
User Avatar
Staff
3455 posts
Joined: July 2005
Offline
python is the answer here…

attached is a shelf tool that mimics the Bones From Curve tool

Attachments:
bonesfromcurve.shelf (7.2 KB)

Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
21 posts
Joined: Nov. 2008
Offline
Cool, thanks so much! I'm still new at this, but I'll try figuring a way to get something like that into a Python node.
  • Quick Links