ChangePrimDisplayNameCommand#

class omni.kit.widget.stage.ChangePrimDisplayNameCommand(
stage: Stage,
prim_path: Path,
new_display_name: str,
)#

Bases: Command

Command to change the display name of a prim.

Methods

__init__(stage, prim_path, new_display_name)

Constructor.

do()

Renames the prim display name with the new display name, or no operation performed if the prim doesn't exist.

undo()

Undo the rename for display name of the prim.

__init__(
stage: Stage,
prim_path: Path,
new_display_name: str,
)#

Constructor.

Parameters:
  • stage (Usd.Stage) – USD stage.

  • prim_path (Sdf.Path) – Prim path.

  • new_display_name (str) – New display name to be set.

do()#

Renames the prim display name with the new display name, or no operation performed if the prim doesn’t exist.

undo()#

Undo the rename for display name of the prim.