Setattr is a general, multipurpose attribute-setting command. It sets an attribute named attr-name (existing or new) of the specified items at the indicated level to a single user-supplied value. Following the usual convention, a blank specification means “all.” A new attribute will not be created unless create is true (default false). See also: info, the custom preset example
The level can be any one of the following:
The attr-name may include upper- and lower-case letters, numbers (digits), and underscores, but cannot start with a digit.
Regardless of whether the attribute already exists, the data type is discerned as follows:
Although setattr does not restrict which attributes it can affect, using it for certain attributes may not make sense. For example, a simpler command may already exist to perform the same task:
setattr /a res ribbon_color orange
– is equivalent to –
color /a orange targ r