GetCurrentAnimationLayer

導入

v6.0

カテゴリ

アニメーション

詳細

指定されたオブジェクトの現在のアニメーション レイヤを戻します。 戻り値 -1 は、オブジェクトの現在のレイヤが異なることを示します。この現象は、異なるモデルのオブジェクトが選択されている場合に発生することがあります。

スクリプト構文

oLong = GetCurrentAnimationLayer( [InputObjs] );

戻り値

Long

パラメータ

パラメータ タイプ 詳細
InputObjs 文字列 オブジェクトのリスト

デフォルト値:現在選択されているオブジェクト

VBScript の例

' 
' In this example, we will set and retrieve the current animation layer
'
NewScene , false
Application.LogMessage "Current animation layer before : " & GetCurrentAnimationLayer() 
SetCurrentAnimationLayer ,1,True
Application.LogMessage "Current animation layer after  : " & GetCurrentAnimationLayer()
SetCurrentAnimationLayer ,0
' Output of above script:
'INFO : Current animation layer before : 0
'INFO : Current animation layer after  : 1

関連項目

SetCurrentAnimationLayer GetNumberOfAnimationLayers AddAnimationLayer DeleteAnimationLayer DuplicateAnimationLayer RemoveAnimation RemoveAllAnimation SaveKey RemoveKey PrevKey FirstKey LastKey Parameter.AddFCurve