User guide
91
| | |-- expr = 'print "hi"'
| | `-- historyName = 'AttributeScript'
| `-- resolveIds = 'test'
`-- type = 'group'
AttributeUpgrade is useful when loading saved or serialized attributes that are in this form into Katana post-2.0 ops.
Simply loading a 1.x file that contains an AttributeScript node in 2.0 prompts Katana to run through standard
upgrade mechanisms, which means this AttributeUpgrade node isn't necessary in that case. This node is only needed
when you're loading old attributes directly. Using an AttributeUpgrade node would, therefore, transform the
previous example into:
.
|-- ops
| `-- AttributeScript
| |-- opType = 'AttributeScript'
| |-- opArgs
| | |-- script = 'print "hi"'
| | `-- nodeName = 'AttributeScript'
| `-- resolveIds = 'test'
`-- type = 'group'
NOTE: The AttributeUpgrade Op is run automatically during a LookFileResolve, which means that most of
the time, you shouldn't need to use this node explicitly.
2 NODES A-C | ATTRIBUTEUPGRADE