Go to: Synopsis. Return value. Keywords. Related. Flags. MEL examples.
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.
string[] | The list of node(s) of the requested type connected to the given node(s) |
debug, node, type, search
affectedNet, affects, allNodeTypes, listConnections
deep, exact, forward, type
Long name (short name) |
Argument types |
Properties |
-deep(-d)
|
|
|
|
Find all nodes of the given type instead of just the first.
|
|
-exact(-e)
|
|
|
|
Match node types exactly instead of any in a node hierarchy.
|
|
-forward(-f)
|
|
|
|
Look forwards (downstream) through the graph rather than backwards
(upstream) for matching nodes.
|
|
-type(-t)
|
string
|
|
|
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.
|
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: //