AeronMiles
10-16-2008, 11:15 AM
Hi guys,
I am writing a script to add a ca to some car animation rigs with the goal of writing the whole rig into mxs including wiring parameters and conditions etc.
I am trying to link a slider to two pivot points very similar to an fk/ik setup with 3 bones. I want the slider to blend the main bone to one pivot point i.e. bone 1 when it's between -90 and 0 and then the other bone 2 between 0 and 90 using orientation and position constraints. This is to create the effect of a car rolling using it's left and right wheels as pivot points.
this is part of my code which is returning the subanims error:
paramWire.connect $.modifiers[#PEN_Attribute_Holder_2].Stan_Movement[#Roll] $CNT06.rotation.controller.weight[1] "Roll"
I have been trying to use getsubanimnames but can't seem to find the code specific to the constraints. getsubanimnames $[#weights] returns -- Type error: Call needs function or class, got: undefined.
Does anyone have any ideas of the code I would use to link these parameters and how this would fit into an If statement?
Many thanks,
Aeron
P.s. thanks PEN for some awesome tutorials and scripts!
I am writing a script to add a ca to some car animation rigs with the goal of writing the whole rig into mxs including wiring parameters and conditions etc.
I am trying to link a slider to two pivot points very similar to an fk/ik setup with 3 bones. I want the slider to blend the main bone to one pivot point i.e. bone 1 when it's between -90 and 0 and then the other bone 2 between 0 and 90 using orientation and position constraints. This is to create the effect of a car rolling using it's left and right wheels as pivot points.
this is part of my code which is returning the subanims error:
paramWire.connect $.modifiers[#PEN_Attribute_Holder_2].Stan_Movement[#Roll] $CNT06.rotation.controller.weight[1] "Roll"
I have been trying to use getsubanimnames but can't seem to find the code specific to the constraints. getsubanimnames $[#weights] returns -- Type error: Call needs function or class, got: undefined.
Does anyone have any ideas of the code I would use to link these parameters and how this would fit into an If statement?
Many thanks,
Aeron
P.s. thanks PEN for some awesome tutorials and scripts!
