pxr.Usd.References.RemoveReference
pxr.Usd.References method
Removes the specified reference from the references listOp at the current EditTarget.
This does not necessarily eliminate the reference completely, as it may be added or set in another layer in the same LayerStack as the current EditTarget.
Universal Scene Description: UsdReferences Class Reference
指定した References を取り除く(delete List Op を挿入する)
Args
ref: pxr.Sdf.Reference
Return
bool
Examples
code:py
from pxr import Sdf, Usd
stage = Usd.Stage.CreateNew("foo.usda")
foo: Usd.Prim = stage.DefinePrim("/foo", "Xform")
refs: Usd.References = foo.GetReferences()
refs.RemoveReference(Sdf.Reference("/bar"))
code:usda
#usda 1.0
def Xform "hello" (
delete references = @/bar@
)
{
}