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:
@@ -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' )
|
||||
|
||||
Reference in New Issue
Block a user