MotionBuilder Forum
Welcome to Autodesk’s MotionBuilder Forums. Share your knowledge, ask questions, and explore popular MotionBuilder topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to lock/Unlock Character with Python in Motion Builder

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
maxime-picot
442 Views, 3 Replies

How to lock/Unlock Character with Python in Motion Builder

Hi Everyone !

I would like to unlock my characterization in order to modify the orientation of a joint, then relock this characterization using a Python script. However, I can't seem to get this attribute. How can I go about it?

The attribut that i wan't to access with pythonThe attribut that i wan't to access with python

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Thanks for your help !

3 REPLIES 3
Message 2 of 4
damian.pajda
in reply to: maxime-picot

Hey, try this:

 

FBApplication().CurrentCharacter.SetCharacterizeOff()
FBApplication().CurrentCharacter.SetCharacterizeOn(True)

 

link to documentation:

https://help.autodesk.com/cloudhelp/2024/ENU/MotionBuilder-SDK/py_ref/classpyfbsdk_1_1_f_b_character...

Message 3 of 4
maxime-picot
in reply to: damian.pajda

Thanks you ! It Works, I have one last problem, when I relock the character, how can I say that it's a Biped ?

Message 4 of 4
maxime-picot
in reply to: maxime-picot

Oh I just found that "True" means Biped and "False" Quadruped in : FBApplication().CurrentCharacter.SetCharacterizeOn(True)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report