made scn.objects more flexible... you can now things like...

scn.objects.selected = [] # deselect all
scn.objects.selected = scn.objects # select all
scn.objects.context = [ob1, ob2...]

Added epydoc examples and updates importer scripts to use this de-select-all method.
This commit is contained in:
2006-12-28 11:09:36 +00:00
parent 356ea2ff28
commit 2feea3dcc3
9 changed files with 141 additions and 52 deletions

View File

@@ -118,8 +118,8 @@ def polysFromMesh(me):
def mesh2polys():
scn= Scene.GetCurrent()
for ob in scn.objects:
ob.sel= 0
scn.objects.selected = []
meshOb= scn.objects.active
if meshOb==None or meshOb.type != 'Mesh':
Draw.PupMenu( 'ERROR: No Active Mesh Selected, Aborting' )