ジャンプ先: 概要. 戻り値. フラグ. Python 例.

概要

listAnimatable([active=boolean], [manip=boolean], [manipHandle=boolean], [shape=boolean], [type=boolean])

注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。

listAnimatable は、取り消し可能、照会不可能、および編集不可能です。

ノードのアニメート可能アトリビュートがリストされます。フラグを指定すると、現在のマニピュレータまたはノード タイプでフィルタリングできます。

戻り値

string[]検索されたすべてのアニメート可能アトリビュート

フラグ

active, manip, manipHandle, shape, type
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
active(act) boolean create
このフラグはサポートしていません。
manip(m) boolean create
現在のマニピュレータから影響されるアトリビュートのみが返されます。アクティブなマニピュレータが存在せず、別のフラグを指定した場合、出力は、「-manip」フラグを指定しない場合と同じです。
manipHandle(mh) boolean create
現在のマニピュレータ ハンドルに影響されるアトリビュートのみが返されます。アクティブなマニピュレータ ハンドルが存在せず、別のフラグを指定した場合、出力は、「-manipHandle」フラグを指定しない場合と同じです。
shape(s) boolean create
このフラグはサポートしていません。
type(typ) boolean create
アトリビュートは返されず、現在アニメート可能なノードのタイプが返されます。

フラグはコマンドの作成モードで表示できます フラグはコマンドの編集モードで表示できます
フラグはコマンドの照会モードで表示できます フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。

Python 例

import maya.cmds as cmds

# List only the attrs driven by the current manip.
#
cmds.listAnimatable( manip=True )

# List only the attrs driven by the current manipulator handle.
#
cmds.listAnimatable( manipHandle=True )

# List only the types of nodes driven by the current manip.
#
cmds.listAnimatable( manip=True, type=True )

# List only the types of the active nodes.
#
cmds.listAnimatable( type=True )

# List attributes on active objects (and shapes below them),
# or active attrs.
#
cmds.listAnimatable()

# List types of active objects and types of any shapes below active
# objects.
#
cmds.listAnimatable( type=True )