ReplacePayloadCommand#

class omni.usd.commands.ReplacePayloadCommand(
stage,
prim_path: Path,
old_payload: Payload,
new_payload: Payload,
)#

Bases: PayloadCommandBase

Replace the specified reference with a new one.

Methods

__init__(stage, prim_path, old_payload, ...)

Constructor.

do()

__init__(
stage,
prim_path: Path,
old_payload: Payload,
new_payload: Payload,
)#

Constructor.

Parameters:
  • stage (Usd.Stage) – The stage to operate.

  • prim_path (Sdf.Path) – The prim path to replace payload.

  • old_payload (Sdf.Payload) – The payload to be replaced.

  • new_payload (Sdf.Payload) – The new payload handle.