現在のフレーム値は、Current という名前のパラメータに含まれ、GetValue および SetValue コマンドを使用する(「パラメータ値へ直接アクセスする」を参照)か、以下の例に示すようにParameter または Parameter オブジェクトを使用します。
パラメータは、Property または Property オブジェクトから利用できます(PlayControl プロパティへのポインタを取得する方法の詳細については、「PlayControl プロパティ セットにアクセスする」を参照)。
' VBScript (command access) dim curr_frame curr_frame = GetValue( "PlayControl.Current" )' GetValue only returns data values for Parameters ' Go to frame 10, and then the last frame SetValue "PlayControl.Current", 10.0 SetValue "PlayControl.Current", GetValue( "PlayControl.Out" )
// JScript (object model access) var remote_control = ActiveProject.Properties( "Play Control" ); var curr_frame = remote_control.Parameters( "Current" );// returns a pointer to the specified Parameter // Find out what the current frame is Application.LogMessage( "Current frame: " + curr_frame.Value ); // Go to frame 10, and then the last frame curr_frame.Value = 10.0; curr_frame.Value = remote_control.Parameters( "Out" ).Value;