In my export script I wish to export all object named 'foo*' in one format, and all objects named 'bar*' in another format.
I could write 2 separate exporters that operate on the selection (so I select all 'foo*' objects and execute FooExporter, rinse and repeat for 'bar*'
But I would rather get it done in one go, with:
fooList = get_objects_starting( 'foo' )
for obj in fooList:
foo_exporter( obj )
barList = get_objects_starting( 'bar' )
for obj in barList:
bar_exporter( obj )
How can I get a list of all 'foo*' objects?