The listSets command is used to get a list of all the sets an object belongs to. To get sets of a specific type for an object use the type flag as well. To get a list of all sets in the scene then don’t use an object in the command line but use one of the flags instead.
Returns all sets in the scene.
When requesting a transform’s sets also walk down to the shape immediately below it for its sets.
Returns all sets which this object is a member of. Flag can have multiple arguments, passed either as a tuple or a list.
Returns all sets in the scene of the given type: 1 - all rendering sets2 - all deformer sets
Derived from mel command maya.cmds.listSets