PDA

View Full Version : Help with SetActiveController Function


jecaTatu
09-14-2005, 05:00 PM
hey everybody,
i'm not a scriptor by any stretch of the imagination, so i need some help with something that will turnout completely obvious i'm sure. I'm trying to use the SetActiveController to automate my rigging process of adding an orientation constraint to a bone with a list controller (game engine requirement). so this is what i have now:

$jnt_tailRoot.rotation.controller = Rotation_List ()
$jnt_tailRoot.rotation.controller.Available.controller = Orientation_Constraint ()
$jnt_tailRoot.rotation.controller.Orientation_Constraint.controller.relative = on

the pieces missing are being able to set the active controller to the orientation constraint. in the help files it gives me this

SetActiveController OBJ Trans Controller

so i then tried this
SetActiveController $jnt_tailRoot rotation Orientation_Constraint
because that's what i though OBJ Trans Controller meant, but i get this error:
-- Argument count error: SetActiveController wanted 2, got 3
then:
SetActiveController $jnt_tailRoot rotation.Orientation_Constaint
-- Unknown property: "Orientation_Constaint" in rotation

with my limited understanding of the whole thing, i don't know what else to try. so i turn to the people who know these things. any hints would be greatly appreciated!

thanks!!

PEN
09-14-2005, 05:03 PM
theListController.setActive 2

jecaTatu
09-14-2005, 05:09 PM
thanks! that worked like a dream.

CGTalk Moderation
09-14-2005, 05:09 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.