ChangeMetadataCommand

class omni.usd.commands.ChangeMetadataCommand(object_paths: List[str], key: Any, value: Any, usd_context_name: str = '')

Bases: Command

Change object metadata undoable Command.

Parameters
  • object_paths (List[str]) – Object paths, can be attribute or prim.

  • key – Key of metadata to change.

  • value – Value of metadata to change to.

  • usd_context_name (str) – Name of the usd context to work on. Leave to “” to use default USD context.

Methods

__init__(object_paths, key, value[, ...])

do()

undo()

__init__(object_paths: List[str], key: Any, value: Any, usd_context_name: str = '')