OpenAnimationEditor

導入

v2.0

カテゴリ

view

詳細

アニメーション ビュー(右側)に入力ビューが設定されたアニメーション エディタを開きます。 アニメーション ツリー(左側)には、入力パラメータが選択された状態で、入力オブジェクトが表示されます。

スクリプト構文

OpenAnimationEditor( [AnimationView], [InputObjs] );

パラメータ

パラメータ タイプ 詳細
AnimationView 文字列 アニメーション エディタ(たとえば "F カーブ エディタ")にどのアニメーション ビューを表示するかを指定します。

デフォルト値:なし:Animation Editor が表示するアニメーションビューを決定します。

指定可能な値:

説明:

FCurve Editor FCurve Editor
Standalone DopeSheet Standalone DopeSheet
Expression Editor Expression Editor
Scripted Operator Editor Scripted Operator Editor
InputObjs 文字列 アニメート可能なパラメータのリスト(例: cone*/.kine.local.pos)。

デフォルト値:現在マークされているパラメータ

1. VBScript の例

'
'       This example demonstrates how to open the default animation view with 
'       the OpenAnimationEditor command.
'
NewScene , false
' Create an object and set a key on it
set oAnimObj = CreatePrim( "Cone", "MeshSurface" )
Translate oAnimObj, -7.92963227268228, 5.31226706028277, -0.531226706028277, _ 
                siRelative, siView, siObj, siXYZ
SaveKey oAnimObj & "/.kine.local.pos", 1
' Open the Animation Editor with the default animation view (in this case, the FCurve Editor)
OpenAnimationEditor

2. JScript の例

/*
        This example demonstrates how to open the Standalone DopeSheet with the 
        OpenAnimationEditor command and automatically select the position fcurves.
*/
NewScene( null, false );
// Create an object and set a key on it
var oAnimObj = CreatePrim( "Cone", "MeshSurface" );
Translate( oAnimObj, -7.92963227268228, 5.31226706028277, -0.531226706028277,  
                siRelative, siView, siObj, siXYZ );
SaveKey( oAnimObj + "/.kine.local.pos", 1 );
// Open the Animation Editor with the Dopesheet as the animation view and 
// automatically select the position fcurves
OpenAnimationEditor( "Standalone DopeSheet", oAnimObj + "/.kine.local.pos" );

関連項目

OpenView