[Bf-python] integrating lib iter types

Campbell Barton cbarton at metavr.com
Mon Feb 26 09:27:33 CET 2007


Hi, recently I added Blender.Main that gives access to iterator types 
for all kinds...

http://wiki.blender.org/index.php?title=User:Ideasman42#Post_2.43_Update_to_the_Python_API

Willain suggested Blender.Main.scenes, meshes, objects etc could be 
moved to Blender.*

so you could do this.

for mesh in Blender.meshes: print mesh

and...

scn = Blender.scenes.active

and...

arm = Blender.armatures['my_arm']


This seems more logical to me then "Blender.Main.scenes"

Any thoughts as to weather this is desirable, and when it might be done?

Main negitive is "Blender.Object" and "Blender.objects" are fairly 
similar...





-- 
Campbell J Barton

133 Hope Street
Geelong West, Victoria 3218 Australia

URL:    http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241



More information about the Bf-python mailing list