Saturday, April 11, 2009

How to build a list of all objects in Blender

Sample code to get a list of objects in a scene in Blender: Access the the Python scripting by first selecting the python view screen then select Scripts>System>Interactive Python Console
import Blender from Blender import Scene # get a list of scenes in Blender scn = Scene.Get() # build a list of objects obs = [ob for ob in scn[0].objects]

No comments:

Post a Comment