poplasa.blogg.se

Maya python setattr shader color
Maya python setattr shader color







How many children will the new attribute have? This is an internal flagĪttribute that is to be the new attribute's parent. Whether or not the internal cached value is set when This flag is currently not supported (it will always be set Whether or not attribute data is cached internally in the node. Specifies the maximum value for the attributeįlag indicating whether an attribute has a maximum value. Specifies the minimum value for the attributeįlag indicating whether an attribute has a minimum value. Sets whether an index must be used when connecting Makes the new attribute a multi-attribute. (can only be used for numeric attributes). Specifies the default value for the attribute Note that the attribute types "float", "matrix" and "string"Īre also MEL keywords and must be enclosed in quotes. Specifies the attribute type, see above table for more details. If the tag you try to give it is a reserved one. Should be unique within each node but the attribute will only be rejected These tags are currently ignored but may be used in the future. Specifies the tag used to store the attribute in the binary Maya scene file. "attributeNiceName" and "attributeQuery -niceName" to lookup an attribute's Setting theĪttribute's nice name to a non-empty string overrides the defaultīehaviour of looking up the nice name from Maya's Sets the nice name of the attribute for display in the UI. Related aliasAttr, attributeInfo, connectAttr, deleteAttr, disconnectAttr, getAttr, getClassification, nodeType, objExists, objectType, renameAttr, setAttr Flags attributeType, binaryTag, cachedInternally, dataType, defaultValue, enumName, exists, hasMaxValue, hasMinValue, hasSoftMaxValue, hasSoftMinValue, hidden, indexMatters, internalSet, keyable, longName, maxValue, minValue, multi, niceName, numberOfChildren, parent, readable, shortName, softMaxValue, softMinValue, storable, usedAsColor, writable Long name (short name) Keywordsattribute, dependency, graph, add, dynamic, create In query mode, return type is based on queried flag. at enum (specify the enum names using the enumName flag) (using the "-p" flag to set their parent to the compound being created). In most cases the -dt version will not display in the attributeĮditor as it is an atomic type and you are not allowed to changeĪll attributes flagged as "(compound)" below or the compound attribute itselfĪre not actually added to the node until all of the children are defined Is best to use the -at in these cases for maximum flexibility. Three individual values that make up a double3). In these cases the -dt flag should be used when you only wish toĪccess the data as an atomic entity (eg. Some types, such as double3 can use either. To add a non-double attribute the following criteriaĬan be used to determine whether the dataType or the attributeTypeįlag is appropriate. Once indicating that any of the supplied types will be accepted (logical-or). The dataType flag can be specified more than If neither a dataType nor an attributeType is specified, a doubleĪttribute will be added. This command is used to add a dynamic attribute to a node or nodes.Įither the longName or the shortName or both must be specified. This is not depicted in the synopsis.ĪddAttr is undoable, queryable, and editable. SynopsisĪddAttr(,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ) Note: Strings representing object names and arguments must be separated by commas. The -type flag is only required when setting a non-numeric attribute.Go to: Synopsis. The attribute is needed when the -l/-k/-s flags are used. Sets the value of a dependency node attribute. SetAttr is undoable, queryable, and editable. Note: Strings representing object names and arguments must be separated by commas.









Maya python setattr shader color