RemovePropertyCommand

class omni.usd.commands.RemovePropertyCommand(prop_path: Union[Path, str], usd_context_name: str = '', remove_from_layers: Optional[Union[List[Union[str, Layer]], str, Layer]] = None)

Bases: Command

Remove Property Command.

Parameters
  • prop_path (str) – Path of the property to be removed.

  • usd_context_name (str) – Usd context name to run the command on.

  • remove_from_layers (Optional[Union[List[Union[str, Sdf.Layer]], str, Sdf.Layer]]) – Specific layers to remove the property from. Default to None, which removes the property from all layers.

Methods

__init__(prop_path[, usd_context_name, ...])

do()

undo()

__init__(prop_path: Union[Path, str], usd_context_name: str = '', remove_from_layers: Optional[Union[List[Union[str, Layer]], str, Layer]] = None)