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 / Select Node by Name
  RSS 2.0 ATOM  

Select Node by Name
Rate this thread
 
21872
 
Permlink of this thread  
avatar
  • sublist
  • Posted: 26 January 2009 10:15 AM
  • Location: Germany
  • Total Posts: 57
  • Joined: 22 August 2006 02:12 AM

Hi there…

Learning MB’s Python Setup…

Can’t figure out to select something by name.

thxs



Replies: 0
avatar
  • Avalon
  • Posted: 26 January 2009 11:16 AM

Here we go:

#Create a model from script
myModel FBModelNull('myNull')
myModel.Show True

#Select an existing model
myModel FBFindModelByName('nameOfModel')
myModel.Selected True

There’s a bunch of example scripts shiped with MB:
C:\Program Files\Autodesk\MotionBuilder 2009\PythonScripting\Samples
C:\Program Files\Autodesk\MotionBuilder 2009\bin\config\Scripts

Cheers,
Chris



Choose a job you love, and you will never have to work a day in your life.

Replies: 0