pymel.core.general.listSets

listSets(*args, **kwargs)

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.

Flags:
  • allSets : allSets (bool) [create]

    Returns all sets in the scene.

  • extendToShape : ets (bool) [create]

    When requesting a transform’s sets also walk down to the shape immediately below it for its sets.

  • object : o (PyNode) [create]

    Returns all sets which this object is a member of. Flag can have multiple arguments, passed either as a tuple or a list.

  • type : t (int) [create]

    Returns all sets in the scene of the given type: 1 - all rendering sets2 - all deformer sets

Derived from mel command maya.cmds.listSets

Previous topic

pymel.core.general.listRelatives

Next topic

pymel.core.general.listTransforms

Core

Core Modules

Other Modules

This Page