ReplaceReferenceCommand#
- class omni.usd.commands.ReplaceReferenceCommand(
 - stage: Stage,
 - prim_path: Path,
 - old_reference: Reference,
 - new_reference: Reference,
 Bases:
ReferenceCommandBaseReplace the specified reference with a new one.
Methods
__init__(stage, prim_path, old_reference, ...)Constructor.
do()- __init__(
 - stage: Stage,
 - prim_path: Path,
 - old_reference: Reference,
 - new_reference: Reference,
 Constructor.
- Parameters:
 stage (Usd.Stage) – The stage to operate.
prim_path (Sdf.Path) – The prim path to replace reference.
old_reference (Sdf.Reference) – The reference handle to be replaced.
new_reference (Sdf.Reference) – The new reference handle.