Tag

導入

v4.0

詳細

パラメータにタグを 1 つ以上追加します。 このコマンドは、パラメータの現在のタグ設定にタグを追加します。

スクリプト構文

Tag( [InputObjs], [Level] );

パラメータ

パラメータ タイプ 説明
InputObjs 文字列 タグ付けするパラメータのリスト

デフォルト値:現在のマーキングおよび選択に基づきます。

Level siTags 追加するタグ。 多数のタグを組み合わせることができます。すべてのタグを追加するには。siTagAll を使用します。

デフォルト値: siTagAll

JScript の例

// JScript example that shows how to tag and untag parameters

NewScene(null, null);

CreatePrim("Cone", "MeshSurface", null, null);

// Tag the subdivu parameter on the cone.

Tag("cone.polymsh.geom.subdivu", siTag3);

Tag("cone.polymsh.geom.subdivv", siTagAll);

// Display the tags on the cone

var oObj = GetValue("Cone");

var oList = oObj.TaggedParameters( siTag3, true );

for (i=0; i<oList.count;i++)

{

	logmessage (oList.Item(i));

}

// Remove couple of tags

UnTag("cone.polymsh.geom.*", siTag2 + siTag3);

// Display the tags on the cone

var oObj = GetValue("Cone");

var oList = oObj.TaggedParameters( siTagAll, true );

for (i=0; i<oList.count;i++)

{

	logmessage (oList.Item(i));

}

// Now remove all tags

UnTag("cone.polymsh.geom.*", siTagAll);

関連項目

Untag Parameter.Tags ProjectItem.TaggedParameters