Select to view content in your preferred language

Python :- Selection- Suggestion

797
0
07-24-2012 01:30 PM
RobertHexter
Regular Contributor
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