Notifications
Clear all

[Closed] working with the selected biped bone

Hi and thanks for reading my post!

Although I have scripting experiences I’m new to maxscript. I hope to achieve something and I am almost there, but I don’t know how to apply it to a selected biped bone/part.

What I need to do is toggle trajectory (motion panel trajectory, not object properties trajectory) on/off. I have a script that does that to a newly created biped (it is the last line) but I don’t know how to apply it to any selected biped bone.

Here is the script:
bipObj = biped.createNew 100 100 [0,0,0]
select bipObj
bip = bipObj.transform.controller
bip.displayTrajectories = on

Could anybody kindly help me, please?

Many, many thanks in advance!

Pavel

2 Replies

hey pavel, try this:

   max motion mode
    ($.controller.rootNode).controller.displayTrajectories = on

If a space appears between the o and r in Trajectories, make sure you take it out

–Jon

Oh yes, yes, YES!

Thank you very much! This will save me so much time.

Best regards!!

Pavel