RemovePropertyCommand#
- class omni.usd.commands.RemovePropertyCommand(
- prop_path: Path | str,
- usd_context_name: str | Stage = '',
- remove_from_layers: List[str | Layer] | str | Layer | None = None,
Bases:
Command
Remove property.
Methods
__init__
(prop_path[, usd_context_name, ...])Constructor.
do
()undo
()- __init__(
- prop_path: Path | str,
- usd_context_name: str | Stage = '',
- remove_from_layers: List[str | Layer] | str | Layer | None = None,
Constructor.
- Parameters:
prop_path (str) – Path of the property to be removed.
usd_context_name (str, optional) – Usd context name to run the command on. Default is None, which means the default UsdContext is used.
remove_from_layers (Optional[Union[List[Union[str, Sdf.Layer]], str, Sdf.Layer]]) – A list of layers to remove the property from. Default to None, which removes the property from all layers. Default is None.