View Full Version : CAs - adding tracks to ParamBlocks recursively ???

12 December 2008, 06:33 PM
Hi everyone !!

Iīm used to save facial slider poses in CA defs using Paulīs Neale PEN Attribute Holder.
I just add a new CA to PENīs modifier with some float tracks in the Parameter block and then I instance controlers to those tracks.

For facial controls its OK cause they are just a few and generally just one axis or two, so I create the tracks manually and instance.....

The problem now is the following. I want to use PENs modifier to save body poses....

Thereīs at least 6 controllers per "Control object" in the rig.
Ex: 3 for pos. and 3 for rotation. on a Wrist control obj.

For the whole Rig there are too many objs to do it manually, Iīll have to spent 2 weeks creating and instancig tracks. :eek:

Is there a way to add new tracks in the parameter block using loops or somethnig?

Ex. I select all the control objs in my rig, and the code will automatically add a new float track to a CA def and instance the correspondent controller

varName = attributes attbName
parameters Main
wristXpos type:#float
wristYPos type:#float
wristZpos type:#float

wristXrot type:#float
wristYrot type:#float
wristZrot type:#float


Thanks in advance :)

12 December 2008, 08:36 PM
Well I wrote a script that builds the ca def as a string, adds it and then instances all the controllers to the tracks. It creates the param block parameters based on the name of the object the transform type and then the controller.

CGTalk Moderation
12 December 2008, 08:36 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.