Python :- Selection- Suggestion

649
0
07-24-2012 01:30 PM
RobertHexter
New Contributor III
Not so nice:

myListOfShapes=ce.getObjectsFrom(ce.selection(), ce.isShape)

This would be far nicer:

whatEverIsSelected = ce.getSelection()

myListOfShapes=ce.getSelection(type="Shape")
myListOfModels=ce.getSelection(type="Model")

#filter a selection
myListOfShapes=ce.getSelection(whatEverIsSelected, type="Shape")
Tags (3)
0 Kudos
0 Replies