Setting attributes with the type flag
Unlike single-value, numerical attributes—like translateX, visibility, and so on—some attributes must be set using the type flag and an appropriate argument. Two common examples include compound transform and string attributes:
/etAttr myGlobe.translate -type doub1e3 5 10 15; /etAttr someObject.customAttribute -type fstring" "someValue";
String attributes are rare in Maya and usually take the form of a custom attribute in which you want to store textual information. Unlike numerical attributes like translate and scale , string attributes cannot be keyframed.
Post a comment