SelectKeysInTimespan

導入

v6.0

詳細

指定された選択モードに従って、入力リストの各カーブで、タイムスパン(StartFrame から EndFrame まで)のすべてのキーのキー選択を操作します。 選択モードは現在のキー選択の操作方法を定義します。キー選択をリセット、追加、切り替え、または削除できます(選択をクリアする場合は、DeselectAllKeys コマンドを使用します)。

ヒント: 貼り付け先の各 F カーブを指定するには、InputObjs 引数で操作するパラメータを識別します。

注: キー選択が使用され、DopeSheet に表示されます。

スクリプト構文

SelectKeysInTimespan( [InputObjs], Mode, [StartFrame], [EndFrame], [Type] );

パラメータ

パラメータ タイプ 説明
InputObjs 文字列 アニメート可能なパラメータのリスト (例: cone*/kine.local.pos)。このパラメータは、Type パラメータを使用して、使用するパラメータを以下の方法で決定します。

- Type == siInputParameters の場合、InputObjs は入力そのものとして使用されます(指定されたリストまたは選択したオブジェクトのアニメート可能なパラメータから)。

- Type == siAnimatedParameters の場合、InputObjs は、アニメート可能なパラメータそれぞれが影響を受けるオブジェクトのリストであると予測されます。

- Type == siAllAnimatedParameters の場合、InputObjs の値は無視され、代わりにコマンドがシーン全体のすべてのオブジェクトにあるすべてのアニメートされたパラメータを使用します。

デフォルト値: このパラメータの値を指定しない場合、オブジェクト リストは Type 引数によって示されるスコープに対して選択されたオブジェクトまたはパラメータを使用します。

Mode siFCurveKeySelectionMode 実行するキー選択のモード。

デフォルト値: siSetKeySelection

StartFrame Double 選択を変更するキー範囲の開始フレーム。

すべてのキーについて、開始および終了の両方をブランクのままにします。

値の範囲は -Inf から +Inf
EndFrame Double 選択を変更するキー範囲の終了フレーム。

すべてのキーについて、開始および終了の両方をブランクのままにします。

値の範囲は -Inf から +Inf
Type siParameterScope 操作のパラメータ範囲

デフォルト値: siInputParameters

VBScript の例

'

' This example demonstrates how to use the SelectKeysInTimespan command by creating

' a simple null, animating it and then selecting some of its keys.  If you want to 

' use the DopeSheet to view keys selected via SelectKeysInTimespan, make sure you

' comment out the last line of the example (DeselectAllKeys).

'

' Create a null and animate it

NewScene, False

GetPrim "Null"

Translate , -6.53833089859819, 3.35653805660097, -0.335653805660097, siRelative, siView, siObj, siXYZ, , , , , , , , , , 0

SaveKey "null.kine.local.posx,null.kine.local.posy,null.kine.local.posz", 1

SetValue "PlayControl.Key", 25

SetValue "PlayControl.Current", 25

Translate , 13.2015980564052, 0.828774828790348, -8.28774828790347E-02, siRelative, siView, siObj, siXYZ, , , , , , , , , , 0

SaveKey "null.kine.local.posx,null.kine.local.posy,null.kine.local.posz", 25

SetValue "PlayControl.Key", 50

SetValue "PlayControl.Current", 50

Translate , -12.2437534024705, -6.75451485464142, 0.675451485464142, siRelative, siView, siObj, siXYZ, , , , , , , , , , 0

SaveKey "null.kine.local.posx,null.kine.local.posy,null.kine.local.posz", 50

SetValue "PlayControl.Key", 75

SetValue "PlayControl.Current", 75

Translate , 10.2864186748647, -1.78186588189925, 0.178186588189925, siRelative, siView, siObj, siXYZ, , , , , , , , , , 0

SaveKey "null.kine.local.posx,null.kine.local.posy,null.kine.local.posz", 75

SetValue "PlayControl.Key", 100

SetValue "PlayControl.Current", 100

Translate , -10.9943908103816, 8.70213570229867, -0.870213570229867, siRelative, siView, siObj, siXYZ, , , , , , , , , , 0

SaveKey "null.kine.local.posx,null.kine.local.posy,null.kine.local.posz", 100

' Select all the keys between frames 25 and 50 (inclusive) on each of the posx, posy and posz curves.

SelectKeysInTimespan "null.kine.local.posx,null.kine.local.posy,null.kine.local.posz", siSetKeySelection, 25, 50

' If you wish you can now view that key selection opening a DopeSheet.  The

' selected keys will be drawn in yellow.

' Select all the keys between frames 23 and 31 (inclusive) on each of the posx, posy and posz curves.

' And then add all the keys between frames 48 and 53 (inclusive) again on those same curves.

SelectKeysInTimespan "null.kine.local.posx,null.kine.local.posy,null.kine.local.posz", siSetKeySelection, 23, 31

SelectKeysInTimespan "null.kine.local.posx,null.kine.local.posy,null.kine.local.posz", siAddToKeySelection, 48, 53

' Deselect all the keys

DeselectAllKeys

関連項目

DeselectAllKeys ScaleAndOffset CopyKeys CutKeys DeleteKeys PasteKeys