Go to:
Return value. Related commands. Examples.
Synopsis
renameAttr nodeName.oldAttrName newAttrName
Renames the given user-defined attribute from oldName to newName. If the
new name conflicts with an existing name then this command will fail.
Note that it is not legal to rename an attribute to the empty string.
Return value
string containing the new name (when undone returns original name)
Related commands
addAttr, aliasAttr, deleteAttr, getClassification, nodeType, objExists, attributeInfo, objectTypeExamples
sphere -n sph;
addAttr -sn ms -ln mass -dv 1.0 -min 0.001 -max 10000;
renameAttr sph.mass length;
renameAttr sph.ms ln;