Notifications
Clear all

[Closed] Position constrains – MaxScript

Hi, First excuse my english, isn´t good.

I am study how control Position Constrains with MaxScript on biped, but it does not work.

it is the code


Point pos:[0,0,0]

$Point01.name = "Point LowerArm R"

$LowerArmTwis01.pos.controller = position_list ()

ControlPosition = Position_Constraint ()

$LowerArmTwis01.pos.controller.Available.controller = ControlPosition 

$LowerArmTwis01.pos.controller.Available.controller.ControlPosition.appendTarget $'Bip01 R Forearm' 100


Thanks

1 Reply
 JHN

Last line of script was wrong, the variable that holds the controller is not the name of the controller just a pointer to where in memory the controller lives. So you can call the appendTarget directly on the ControlPosition variable that points to the actual controller instance.


$'LowerArmTwis01'.pos.controller = position_list ()
ControlPosition = Position_Constraint ()
ControlPosition.appendTarget $'Bip01 R Forearm' 100
$'LowerArmTwis01'.pos.controller.Available.controller = ControlPosition

-Johan