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

Synopsis

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

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

The findType command is used to search upstream through a dependency subgraph on a certain node to find all nodes of the given type. These will be nodes that affect the given one.

Return value

string[]The list of node(s) affecting the given node(s)

Keywords

debug, node, type, search

Related

affectedNet, affects, allNodeTypes, listConnections

Flags

deep, exact, 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.
-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 silly.tx putty.tx;
// Find transform nodes connected to node "silly"
//
findType -t "transform" silly;
// Result: silly putty //
select silly;
//
// Same again from selection list
//
findType -t "transform";
// Result: silly putty //
setKeyframe -t 10;
//
// Find all time nodes
//
findType -d -e -t "time";
// Result: time1   //
//
// Find all anim curve nodes
//
findType -d -t "animCurve";
// Result: silly_visibility silly_translateX silly_translateY silly_translateZ   silly_rotateX silly_rotateY silly_rotateZ silly_scaleX silly_scaleY silly_scaleZ   //