|On this page|
This node finds all asset path attributes on a set of primitives, and modifies the path values. This can be useful when receiving USD files from other users which may contain absolute paths that need to be converted to relative paths. It is also useful for converting texture map files into a renderer-specific format (such as
.rat files for rendering in Karma).
The primitive(s) the node should operate on. You can drag primitives from the scene graph tree pane into this textbox to add their paths, or click the Reselect button beside the text box to select the primitives in the viewer, or ⌃ Ctrl-click the Reselect button to choose prims from a pop-up tree window. You can also use primitive patterns for advanced matching, including matching all prims in a collection (using
Allow Chained Modifications
Enable this property to allow multiple rules to be applied to a single path. When this is disabled, the first rule that affects a path causes all following rules to be ignored for that path.
Number of Modification Rules
The number of rules that are needed to process the path values.
Paths with the supplied string as a prefix are affected by this rule. This string uses standard file path matching rules.
Paths with a matching Find prefix have that prefix replaced with this value. This can be used to turn full paths into relative paths, or update full paths with a new root directory.
Paths with the supplied string as a suffix are affected by this rule. This string uses standard file path matching rules.
Paths with a matching Find suffix have that suffix replaced with this value. This can be used to update the file extension on texture map file paths.
This python code is run on every path. The code is responsible for both checking if a change should be made, and making the change. The updated path value should be returned from the python code. Return
None to indicate that no change should be made. Note that this is different than returning an empty string, which indicates that the path value should be cleared.
The current value of the asset path is accessible as the global variable
assetpath within this python code. The scene graph path of the attribute being modified is accessible in the python code as the global variable