現在のフレームを、指定のアニメート パラメータの前のキー フレームに移動します。
| oDouble = PrevKey( [InputObjs], [Time], [Tolerance], [Layer] ); | 
前のキーフレームのフレーム番号を、Double として戻します。 キーがない場合、以下が戻ります。-1.#INF for C++, "-1.#INF" for VBScript and Number.NEGATIVE_INFINITY for JScript.
| パラメータ | タイプ | 説明 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| InputObjs | 文字列 | アニメート可能なパラメータのリスト (例: cone*/kine.local.pos)。 デフォルト値:現在選択され、マーキングされているパラメータ | ||||||||
| Time | Number | このフレームの前のキーに移動します。 デフォルト値: 現在のフレーム | ||||||||
| Tolerance | Double | フレームの許容範囲 デフォルト値:最も近い 0.5 フレーム(-1) 
 | ||||||||
| Layer | Integer | アニメーション レイヤ デフォルト値:現在のアニメーションレイヤ(-1) | 
| ' create a null with some animation
set o = getprim("null")
Translate o, -10, 5, 0, siRelative, siView, siObj, siXYZ
savekey o & "/kine.local.pos", 1
Translate o, 10, -5, 0, siRelative, siView, siObj, siXYZ
savekey o & "/kine.local.pos", 50
Translate o, 10, 5, 0, siRelative, siView, siObj, siXYZ
savekey o & "/kine.local.pos", 75
' Process all the keys prior to the current frame
LastFrame
PrevKeys ( o & "/kine.local.pos" )
sub PrevKeys (params)
	frame = PrevKey( params )
	do while frame <> "-1.#INF"
		LogMessage "There is a key at frame " & frame
		frame = PrevKey( params )
	loop
end sub 
'INFO : "There is a key at frame 75"
'INFO : "There is a key at frame 50"
'INFO : "There is a key at frame 1" |