ActivateFCurveOnKeyable

導入

v5.0

詳細

カーブ全体またはカーブの一部のみを有効または無効にします。

ActivateFCurveOnKeyable は、ドープシートで使用できる機能と同じ機能をもつコマンドです。 このコマンドは、ドープシートと同様の動作をエミュレートするために使用します。

注: このコマンドは ActivateFCurve によく似ていますが、F カーブの有効化/無効化が完了したときの入力オブジェクトとパラメータ リストが異なります。

スクリプト構文

ActivateFCurveOnKeyable( [InputObjs], Activate, [StartFrame], [EndFrame] );

パラメータ

パラメータ タイプ 説明
InputObjs 文字列 オブジェクト名(任意の選択可能なもの)

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

Activate Boolean カーブ全体または入力した領域が有効化な場合は True

デフォルト値: True

StartFrame Double 操作する fcurve の領域の開始フレーム。

カーブ全体を指定する場合には、開始および終了の両方をブランクのままにします。

指定可能な値:

説明:

-Inf < 0 > +Inf 値の範囲は -Inf から +Inf
EndFrame Double 操作する fcurve の領域の終了フレーム。

カーブ全体を指定する場合には、開始および終了の両方をブランクのままにします。

指定可能な値:

説明:

-Inf < 0 > +Inf 値の範囲は -Inf から +Inf

VBScript の例

' First get a primitive and animate its translation

NewScene , False

CreatePrim "Cylinder", "MeshSurface"

Translate , -7.01063515498729, 5.25147709343595, -0.525147709343595, siRelative, siView, siObj, siXYZ

SaveKeyOnKeyable "cylinder", 1

SetValue "PlayControl.Key", 25

SetValue "PlayControl.Current", 25

Translate , 14.8089821251417, -10.34619367662, 1.034619367662, siRelative, siView, siObj, siXYZ

SaveKeyOnKeyable "cylinder", 25

SetValue "PlayControl.Key", 50

SetValue "PlayControl.Current", 50

Translate , -15.3603803957587, -0.391901275629446, 3.91901275629446E-02, siRelative, siView, siObj, siXYZ

SaveKeyOnKeyable "cylinder", 50

SetValue "PlayControl.Key", 75

SetValue "PlayControl.Current", 75

Translate , 14.5726685805916, 10.9732357176274, -1.09732357176274, siRelative, siView, siObj, siXYZ

SaveKeyOnKeyable "cylinder", 75

SetValue "PlayControl.Key", 1

SetValue "PlayControl.Current", 1

SetValue "PlayControl.Key", 100

SaveKeyOnKeyable "cylinder", 100

' Note: to see these deactivations open the DopeSheet on the cylinder

' Deactivate all the keyable FCurves under the cylinder object

ActivateFCurveOnKeyable "cylinder", False

' Reactivate all the keyable FCurves under the cylinder object

ActivateFCurveOnKeyable "cylinder", True

関連項目

FCurve ActivateFCurve ActivateFCurveOnMarkedKeyable