ジャンプ先: 概要. 戻り値. フラグ. Python 例.
pickWalk(
[objects]
, [direction=string], [type=string])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
pickWalk は、取り消し可能、照会不可能、および編集不可能です。
pickWalk コマンドでは現在選択されているノードに関連して、セレクション リストを迅速に変更できます。現在選択されているものを選択解除し、現在選択されているリストから指定した方向にあるノードを選択して、あるセレクション リストから別のセレクション リストに移動します。コマンド ラインのオブジェクトを指定すると、選択したリストではなく、そのオブジェクトから移動します。-type フラグがインスタンスの場合、左方向と右方向では、同じ選択した DAG ノードの前のインスタンスか次のインスタンスに移動します。
string[] | 新しく選択したオブジェクトのリスト |
ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
---|---|---|---|---|
direction(d)
|
string
|
![]() |
||
|
||||
type(typ)
|
string
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
import maya.cmds as cmds # Given the transforms A and B which are parented to a transform C, # and C is instanced with parents D and E. cmds.pickWalk( 'A', direction='right' ) cmds.select('|E|C') cmds.pickWalk( type='instances', direction='left') # The pickWalk command also works on CVs and edit points cmds.select('nurbsPlaneShape1.cv[2][1]') cmds.pickWalk(direction='right' ) # Result: nurbsPlaneShape1.cv[3][1] # cmds.pickWalk( direction='up' ) # Result: nurbsPlaneShape1.cv[3][2] # cmds.select( 'curveShape2.ep[1]' ) cmds.pickWalk( direction='left' ) # Result: curveShape2.ep[0] #