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.
Methods
__init__
(prop_path[, usd_context_name, ...])Constructor.
do
()undo
()- __init__(prop_path: Union[Path, str], usd_context_name: str = '', remove_from_layers: Optional[Union[List[Union[str, Layer]], str, Layer]] = 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.