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 / How to select all models in a scene so I can plot them?
  RSS 2.0 ATOM  

How to select all models in a scene so I can plot them?
Rate this thread
 
56135
 
Permlink of this thread  
avatar
  • Location: Los Angeles CA
  • Total Posts: 99
  • Joined: 16 May 2008 02:40 AM

Seems like this should be easy. I just want to select all of the models in my scene so that I can plot them. Here is what I have tried so far:

lList FBComponentList()
parentModel FBFindObjectsByName('*',lList,False,True)
for 
item in lList:
        print 
item.Name

thx

Ok, I found this in an older post, but it selects everything in a scene:

#Get all elements in the scene:
  
allElems FBSystem().Scene.Components
    
#Loop through each element in the scene and select it:
    
for elemLoop in allElems:
        print 
elemLoop.Name
        elemLoop
.Selected True

Surely, there is a better way to get just the models?



MotionBuilder 7.5 thru ...
3dsMax 2.5 thru ...

Replies: 1
/userdata/avatar/n6nq3f7q9.png

Here is one way:
http://www.the-area.com/forum/au...electing-objects-by-type/

Author: Kim Hutchison

Replied: 24 May 2011 08:16 AM