Hi there,
When I use the NamespaceEditor as shown below, I receive the following warning messages.
However, this relocation is intentional, and the result is correct, so I would prefer not to have these warnings appear.
Are these warnings expected and what options do we have to suppress them given these layers?
I considered filtering them in our delegate, but I would rather avoid checking warning if possible.
Thank you!
Here’s the sample code:
from pxr import Usd, Sdf, Tf
chairLayerStr = """#usda 1.0
(
defaultPrim = "Chair"
)
def Material "Chair"
{
token outputs:displacement.connect = </Chair/Shader.outputs:out>
def Shader "Shader"
{
token outputs:out
}
}
"""
chairLayer = Sdf.Layer.CreateAnonymous()
chairLayer.ImportFromString(chairLayerStr)
stage = Usd.Stage.CreateInMemory()
p = stage.DefinePrim("/World/Asset/Asset01")
p.GetReferences().AddReference(chairLayer.identifier)
e = Usd.NamespaceEditor(stage)
e.MovePrimAtPath("/World", "/ABC")
e.ApplyEdits()
Here’s the warning:
Failed to update the following targets and/or connections for the namespace edit: Fixing the connection paths [ /World/Asset/Asset01/Shader.outputs:out ] for the attribute at '/World/Asset/Asset01.outputs:displacement' would require '/World'to be relocated but we do not introduce relocates for prims that do not have opinions across composition arcs.