Introduced
4.0
Description
Adds one or many tags on a parameter. This command adds Tags to the current set of tags on a parameter.
Scripting Syntax
Tag( [InputObjs], [Level] )
Parameters
|
Parameter |
Type |
Description |
|
InputObjs |
List of parameters to tag. Default Value: Based on current marking and selection. |
|
|
Level |
The Tag to add. This can be a combination of many tags or siTagAll to add them all. Default Value: siTagAll |
Examples
JScript Example
// 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);
See Also
Autodesk Softimage v7.5