User guide
83
• GetXform([worldSpace=False, atLocation=None, asAttr=False, atSamples=None, asFnAttribute=False]) - returns
the local or worldspace transformation as a 16-element list of float values representing a 4x4 transform matrix. If
the atSamples parameter is specified it should be a sequence of time samples at which to return the xform.
• Util.AssetResolve(assetID) - given an asset ID, Util.AssetResolve returns a file path.
• SetAttr(attributePath, [attrValue]) - given an attribute path, SetAttr overrides an attribute with the value provided.
If attrValue is a list of values, the length and type must match any pre-existing attribute at that location or an
error is raised. This is to prevent accidental changes to the definition of an attribute. If attrValue is a
ScenegraphAttr, it is used without regard to any existing attribute. If attrValue is not provided, the existing
attribute at that location is deleted.
• User Parameters - in addition, user parameters of the AttributeScript node itself are available in a module called
user. Each parameter (array or otherwise) is converted to a list of values. For example, a number parameter is
available as a list containing one float value.
Control (UI) Default Value Function
CEL none Specifies Scene Graph locations on which the operation or
assignment acts. The Scene Graph locations are specified using
the Collection Expression Language (CEL).
For more information, see the CEL Reference document found
on the documentation HTML page (accessed through the Help
> Documentation menu option).
2 NODES A-C | ATTRIBUTESCRIPT