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

Synopsis

findType [-deep] [-exact] [-forward] [-type string]

findType is NOT undoable, NOT queryable, and NOT editable.

The findType command is used to search through a dependency subgraph on a certain node to find all nodes of the given type. The search can go either upstream (input connections) or downstream (output connections). The plug/attribute dependencies are not taken into account when searching for matching nodes, only the connections.

Return value

string[]The list of node(s) of the requested type connected to the given node(s)

Keywords

debug, node, type, search

Related

affectedNet, affects, allNodeTypes, listConnections

Flags

deep, exact, forward, type
Long name (short name) Argument types Properties
-deep(-d) create
Find all nodes of the given type instead of just the first.
-exact(-e) create
Match node types exactly instead of any in a node hierarchy.
-forward(-f) create
Look forwards (downstream) through the graph rather than backwards (upstream) for matching nodes.
-type(-t) string create
Type of node to look for (e.g. "transform"). This flag is mandatory.

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

createNode transform -name silly;
createNode transform -name putty;
connectAttr putty.tx silly.tx;

// Find transform nodes connected to node "silly"
//
findType -d -t "transform" silly;
// Result: silly putty //

//
// Look forward from a selected item
//
select silly;
findType -d -forward -t "transform";
// Result: silly //

//
// Find all time nodes
//
setKeyframe -t 10;
findType -d -e -t "time";
// Result: time1   //

//
// Find all anim curve nodes
//
findType -d -t "animCurve";
// ,Result:, pairBlend1_inTranslateX1 silly_translateY silly_translateZ silly_visibility silly_rotateX silly_rotateY silly_rotateZ silly_scaleX silly_scaleY silly_scaleZ //
// Result: //