RemoveActionItem

導入

v6.0

詳細

指定されたアクションから 1 つまたは複数の項目を削除します。 削除する項目のリストが空の場合は、すべての項目が削除されます。

スクリプト構文

RemoveActionItem( Source, [Name] );

パラメータ

パラメータ タイプ 説明
Source 文字列 削除する項目を含むアクション。
Name 文字列 削除する項目の名前のリスト(カンマ区切り)

デフォルト値: すべての項目

JScript の例

/*

	Demonstrates how to use RemoveActionItem with two items as argument.

*/

NewScene(null, false);

CreatePrim("Cube", "MeshSurface");

var emdlFileRefModel = XSIUtils.BuildPath(

	Application.InstallationPath(siProjectPath), 

	"Models", "MyModel.emdl"); 

CreateModelAndConvertToRef("Cube", emdlFileRefModel);

Translate("Model.cube", 2.50, 1.34, 0.00, siRelative, siView, siObj, siXYZ, 

	null, null, null, null, null, null, null, null, null, 0, null);

RemoveActionItem("Model.Delta.StoredPositions", "cube.kine.local.posy,cube.kine.local.posz");

関連項目

ActionDelta.RemoveAllItems Delta.RemoveAction