Notifications
Clear all

[Closed] CAs – adding tracks to ParamBlocks recursively ???

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. 😮

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

1 Reply
 PEN

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.