Go to: Synopsis. Return value. Related. MEL examples.
setAttrEnumResource(string $nodeType, string $attrShortName, int $enumIndex, string $str)
None
| Variable Name | Variable Type | Description |
|---|---|---|
| $nodeType | string | the node type |
| $attrShortName | string | the attribute's short name |
| $enumIndex | string | the index associated with the enum value (0, 1, 2, etc.) |
| $str | string | display string |
// Set the attribute enum strings associated with // attribute "md" on node type "myNode". // This example shows English resource values, however this // routine would more often be called in practice to provide // localized string values. // setAttrEnumResource( "myNode", "md", 0, "Disabled"); setAttrEnumResource( "myNode", "md", 1, "Enabled");