Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Python / Return Current Character / Return Selected Character
  RSS 2.0 ATOM  

Return Current Character / Return Selected Character
Rate this thread
 
61644
 
Permlink of this thread  
avatar
  • OmniZ3D
  • Posted: 03 November 2011 11:15 AM
  • Location: Santa Monica, CA
  • Total Posts: 18
  • Joined: 07 May 2008 11:47 AM

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



Replies: 0
avatar
  • OmniZ3D
  • Posted: 03 November 2011 11:20 AM

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



Replies: 0