Relocates#
What Are Relocates?#
When you reference an asset, its children arrive in your scene under the referencing prim. Those children are real prims on the stage, but you never authored them in your layer — they appear only as a result of composition.
That distinction matters the moment you want to rename or move one of them. A prim you authored locally can be renamed by editing your own layer. A prim that arrived across a composition arc cannot: its name lives in the source asset, and editing that asset would change it for every other consumer.
Relocates solve exactly this problem. A relocate is a rule, recorded in layer metadata, that maps the path where a prim would appear to the path where you want it in this layer stack. The source asset is untouched, and every other scene that references it is unaffected.
You author relocates as a dictionary in layer metadata, mapping source path to target path:
1#usda 1.0
2(
3 relocates = {
4 </World/StreetLamp/lamp_grp_v2_FINAL>: </World/StreetLamp/geometry>
5 }
6)
Only prim paths participate. Attributes and relationships are not relocated — a relocate moves a prim and everything beneath it, but you cannot use one to move a single property.
Note
Relocates are the “E” in LIVERPS — for “rElocates”. They sit between variant sets and references in strength order, which is why the mnemonic changed from LIVRPS to LIVERPS.
When and Why Do You Use Them?#
Relocates let you rename or reparent prims that arrive through composition arcs without destructively editing the source layer. That is useful when:
The prim lives in a referenced asset you do not own or do not want to modify.
Your pipeline has naming conventions that the incoming asset does not follow.
You want a cleaner namespace for downstream scene organization, but still want to keep consuming the asset as delivered.
The common thread is that you need local namespace control while preserving asset reuse.
Renaming in Place#
The simplest use is a rename. Here, a vendor’s lamp asset exposes its geometry under a working name that leaked out of the DCC it was built in:
1def Xform "LampAsset"
2{
3 def Xform "lamp_grp_v2_FINAL"
4 {
5 def Cylinder "pole" { }
6 def Sphere "bulb" { }
7 }
8}
Referencing that asset and relocating the child gives you the name you want:
1#usda 1.0
2(
3 defaultPrim = "World"
4 relocates = {
5 </World/StreetLamp/lamp_grp_v2_FINAL>: </World/StreetLamp/geometry>
6 }
7)
8
9def Xform "World"
10{
11 def Xform "StreetLamp" (
12 prepend references = @./lamp_asset.usd@
13 )
14 {
15 }
16}
The composed stage now shows /World/StreetLamp/geometry, with pole and bulb beneath it. The lamp_asset.usd file on disk is unchanged.
Reparenting Across the Hierarchy#
A relocate target does not have to stay under the same parent. You can lift a composed prim out of the subtree it arrived in and graft it somewhere else in the same layer stack.
Suppose a city block asset ships its buildings and its landmark together, but your pipeline tracks landmarks in a separate group so lighting can work on them independently:
1#usda 1.0
2(
3 defaultPrim = "World"
4 relocates = {
5 </World/District_01/clock_tower>: </World/Landmarks/clock_tower>
6 }
7)
8
9def Xform "World"
10{
11 def Xform "District_01" (
12 prepend references = @./block_asset.usd@
13 )
14 {
15 }
16
17 def Xform "Landmarks"
18 {
19 }
20}
After composition, clock_tower resolves at /World/Landmarks/clock_tower. It is no longer a child of District_01, even though that is the prim carrying the reference.
Removing a Prim#
Relocating a prim to an empty path removes it from the composed stage. This is how you drop scaffolding that an asset ships but your scene does not need:
relocates = {
</World/Sign_01/tmp_rig_helper>: <>
}
This is a composition-time removal, not a deactivation. The prim never appears on the stage at all.
Constraints Worth Knowing#
Relocates come with rules, and two of them cause most of the confusion.
You can only relocate a prim introduced by a composition arc. A prim defined directly in your own layer stack is yours to rename by editing it. If you write a relocate whose source is a locally-defined prim, the relocate does not apply.
Caution
A relocate with a locally-defined source prim does not raise a composition error — the prim is simply dropped from the composed stage, and the target is never created. If a prim disappears after you add a relocate, check that its source path really does come from a reference or payload.
The source path stops being a valid place to author. Once a relocate is in effect, the old path no longer exists on the stage. Any opinion you author there is ignored:
1over "StreetLamp"
2{
3 over "lamp_grp_v2_FINAL" # ignored — this path was relocated away
4 {
5 double size = 99
6 }
7}
USD does warn about this one:
In </World/StreetLamp/geometry>: The layer @relocates_simple.usd@ has an invalid
opinion at the relocation source path </World/StreetLamp/lamp_grp_v2_FINAL>,
which will be ignored.
After a relocate, author against the target path instead.
See also
For the full set of rules, see Relocates in the OpenUSD glossary.