ジャンプ先: 概要. 戻り値. キーワード. 関連項目. フラグ. Python 例.

概要

findType([deep=boolean], [exact=boolean], [type=string])

注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。

findType は 「元に戻す」が不可能「照会」が不可能「編集」が不可能 です。

findType コマンドは、特定のノードのディペンデンシー サブグラフを上へ向かって検索し、指定したタイプのすべてのノードを見つけます。これが指定したノードに影響を与えるノードです。

戻り値

string[] 指定したノードに影響するノードのリスト。

キーワード

debug, node, type, search

関連項目

affectedNet, affects, allNodeTypes, listConnections

フラグ

deep, exact, type
ロング ネーム(ショート ネーム) 引数型 プロパティ
deep(d) boolean create
最初のノードだけではなく、指定したタイプのすべてのノードを検索します。
exact(e) boolean create
ノード階層内のいずれかではなく、ノード タイプを正確に一致させます。
type(t) string create
検索するノードのタイプです(例: transform)。このフラグは必須です。

: コマンドの作成モードで使用可能なフラグ : コマンドの編集モードで使用可能なフラグ
: コマンドの照会モードで使用可能なフラグ : タプルまたはリストとして渡された複数の引数を持てるフラグ

Python 例

import maya.cmds as cmds

cmds.createNode( 'transform', name='silly' )
cmds.createNode( 'transform', name='putty' )
cmds.connectAttr( 'silly.tx', 'putty.tx' )
# Find transform nodes connected to node "silly"
#
cmds.findType( type='transform', 'silly' )
# Result: silly #
cmds.select( 'silly' )
#
# Same again from selection list
#
cmds.findType( type='transform' )
# Result: silly #
cmds.setKeyframe( t=10 )
#
# Find all time nodes
#
cmds.findType( type='time', deep=True, e=True )
# Result: u'time1'   #
#
# Find all anim curve nodes
#
cmds.findType( type="animCurve", deep=True )
# Result: u'silly_visibility', u'silly_translateX', u'silly_translateY', u'silly_translateZ', u'silly_rotateX', u'silly_rotateY', u'silly_rotateZ', u'silly_scaleX', u'silly_scaleY', u'silly_scaleZ'   #