Go to: Synopsis. Return value. Related. Flags. MEL examples.

Synopsis

selectedNodes [-dagObjects]

selectedNodes is undoable, queryable, and editable.

string[] Return a list of all the dependency nodes on the active list.

Return value

a list of strings

In query mode, return type is based on queried flag.

Related

select, selectKey, selectMode, selectPref, selectPriority, selectType

Flags

dagObjects
Long name (short name) argument types Properties
-dagObjects(-do) create
Only return dag objects that are on the active list.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command

MEL examples

string $nodes[];
$nodes = `selectedNodes`;

// Return dag objects only
string $dagnodes[];
$dagnodes = `selectedNodes -dagObjects`;