CopyPrimsCommand
- class omni.usd.commands.CopyPrimsCommand(paths_from: List[str], paths_to: Optional[List[str]] = None, duplicate_layers: bool = False, combine_layers: bool = False, flatten_references: bool = False, copy_to_introducing_layer: bool = False)
Bases:
Command
Copy multiple primitives undoable Command.
- Parameters
List[str] (paths_to) – Paths to copy from.
List[str] – Paths to copy to. If `None` or length smaller than paths_from, then next free path is generated for missing paths.
duplicate_layers (bool) – Duplicate layers on copy.
combine_layers (bool) – Combine layers on copy.
flatten_references (bool) – Flatten references during copy. It’s only valid when combine_layers is True, and not in AUTO_AUTHORING mode.
copy_to_introducing_layer (bool) – If to copy it to the introducing layer, or the current edit target. By default, it’s current edit target. Its’s valid only when combine_layers is true.
Methods
__init__
(paths_from[, paths_to, ...])do
()undo
()- __init__(paths_from: List[str], paths_to: Optional[List[str]] = None, duplicate_layers: bool = False, combine_layers: bool = False, flatten_references: bool = False, copy_to_introducing_layer: bool = False)