PDA

View Full Version : working with the selected biped bone


pavelh
09-10-2007, 05:58 PM
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

jonlauf
09-11-2007, 06:41 PM
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

pavelh
09-11-2007, 08:13 PM
Oh yes, yes, YES!

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

Best regards!!

Pavel

CGTalk Moderation
09-11-2007, 08:13 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.