Go to: Synopsis. Return value. Related. Flags. Python examples.
selectedNodes([dagObjects=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
selectedNodes is undoable, queryable, and editable.
string[] Return a list of all the dependency nodes on the active list.a list of strings
In query mode, return type is based on queried flag.
Long name (short name) | argument types | Properties | ||
---|---|---|---|---|
dagObjects(do)
|
boolean
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
import maya.cmds as cmds nodes = cmds.selectedNodes() # Return dag objects only dagnodes = cmds.selectedNodes(dagObjects=True)