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: 

Return Current Character / Return Selected Character

1 REPLY 1
Reply
Message 1 of 2
omnized
228 Views, 1 Reply

Return Current Character / Return Selected Character

I can return a list of ALL characters in the scene, but how do i return the current character or the character name that my current selection belongs to?


#Find all characters
lScene = FBSystem().Scene
charList = lScene.Characters
for char in charList:
print char.Name


thx
1 REPLY 1
Message 2 of 2
omnized
in reply to: omnized

just as soon as i give up searching and post my question, i run into the answer (obvious one too)

pCharacter = FBApplication().CurrentCharacter
print pCharacter.Name


thx to Tech-Artist.org

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

Post to forums  

Autodesk Design & Make Report