How do I export sets from a Maya file?
You can use the following:
ls -typ objectSet;
Parent topic:
Animation, dynamics, and rendering