Go to: Synopsis. Return value. Related. Flags. MEL examples.
componentTag [-create] [-delete] [-injectionLocation string] [-modify string] [-newTagName string] [-queryEdit] [-rename] [-tagName string] [-uniqueTagName]
[objects]
componentTag is undoable, NOT queryable, and NOT editable.
This command allows you to create, delete and modify component tags| Any | The name of the created componentTag, or whether the command succeeded or the information about what can be edited |
| Long name (short name) | Argument types | Properties | ||
|---|---|---|---|---|
-create(-cr)
|
|
|
||
|
||||
-delete(-d)
|
|
|
||
|
||||
-injectionLocation(-il)
|
string
|
|
||
|
||||
-modify(-m)
|
string
|
|
||
|
||||
-newTagName(-ntn)
|
string
|
|
||
|
||||
-queryEdit(-qe)
|
|
|
||
|
||||
-rename(-rn)
|
|
|
||
|
||||
-tagName(-tn)
|
string
|
|
||
|
||||
-uniqueTagName(-utn) 2024.2
|
|
|
||
|
||||
// Make a geometry
file -f -new;
polyCylinder -r 3 -h 8 -sx 6 -sy 9 -sz 1 -ax 0 1 0 -rcp 0 -cuv 3 -ch 1 -name "cyl";
// Create some tags
componentTag -cr -ntn "bottomSection" cyl.f[0:17];
componentTag -cr -ntn "topSection" cyl.f[36:53];
// Edit a tag
componentTag -m "add" -tn "bottomSection" cyl.f[18:35];
// Rename the tag
componentTag -rn -tn "bottomSection" -ntn "lowerSection" cyl;
// Delete tags (using a wild card)
componentTag -d -tn "*Section" cyl;