maya_reference
Create and manage Maya file references to maintain live links to source files, swap versions via replace, and list, load, or unload references without breaking scene setups.
Instructions
Reference a file into the Maya scene and manage the reference lifecycle: create, list, replace (version swap), load, unload.
A reference keeps a live link to the source file; maya_import_file
copies content in and breaks that link. Production scenes are assembled
from references, so prefer this tool whenever the content has its own
publish and may be re-versioned.
replace is the version-swap path: it repoints an existing reference
node at a new file without disturbing the namespace or anything built on
top of it. list returns every reference node with its file, namespace
and loaded state — the reference_node the other operations require.
unload keeps the link and drops the content from memory; it is the
reversible counterpart of load. Removing a reference outright is NOT
offered here: it is destructive and the safety module requires explicit
user confirmation for it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |