MakeRotationsContinuous

カテゴリ

アニメーション

詳細

回転のキーを処理して、一続きのキーフレームでオイラー角を連続的にします。

後続のキーに最も近い同等のオイラー角のセットを検索し、各キーフレームに対して処理を実行します。 したがって、キーフレームでのオブジェクトの向きは同じままですが、実際の角度が変更されます。

キーフレームから 180 度以上のサイクルを削除して、F カーブのアニメーションをスムーズにする場合に便利です。 これはモーション キャプチャしたデータに有効で、また、クォータニオンの F カーブとオイラーの F カーブを変換する際にも便利です。

スクリプト構文

MakeRotationsContinuous( [InputObjs] );

パラメータ

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

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

VBScript の例

' 
' In this example, an FCurve is created on the ZRot param
' of a cone. Then, some keys are created (at frames 1, 15 and 30)
' which are then made continuous. (by removing an extra rotation
' of 360 degrees at frame 15)
'
NewScene
CreatePrim "Cone", "MeshSurface", "MyCone"
' Add keys at frames 1, 15 and 30
SaveKey "MyCone.kine.local.rotz", 1,  0
SaveKey "MyCone.kine.local.rotz", 15, 540 
SaveKey "MyCone.kine.local.rotz", 30, 360
' Play the animation
PlayForwardsFromStart
' Make rotation keys continuous
MakeRotationsContinuous
' Play the animation
PlayForwardsFromStart

関連項目

ConvertQuatToEuler ConvertEulerToQuat RemoveAnimation RemoveAllAnimation SaveKey RemoveKey PrevKey FirstKey LastKey FCurve