ChangeMetadataCommand#
- class omni.usd.commands.ChangeMetadataCommand(
- object_paths: List[str],
- key: Any,
- value: Any,
- usd_context_name: str = '',
Bases:
Command
Modify metadata of multiple objects.
Methods
__init__
(object_paths, key, value[, ...])Constructor.
do
()undo
()- __init__(
- object_paths: List[str],
- key: Any,
- value: Any,
- usd_context_name: str = '',
Constructor.
- Parameters:
object_paths (List[str]) – A list of object paths, which could be prims, attributes, etc.
key (Any) – Key of metadata to change.
value (Any) – Value of metadata to change to.
usd_context_name (str, optional) – Name of the usd context to work on. Leave to “” to use default USD context.