Sunday, August 16, 2009

Script to find the type of each object in a Blender scene

This examples applies to Blender 2.49 and some earlier versions.
import Blender
from Blender import *
scn = Scene.GetCurrent()
obs = scn.objects
for ob in obs:
    print 'Object named %s has type %s' % (ob.name,ob.type)

No comments:

Post a Comment