CreatePrimsCommand
- class omni.usd.commands.CreatePrimsCommand(prim_types: List[str], usd_context_name: Optional[str] = None)
Bases:
Command
Create multiple primitives.
This command is a batch version of command
CreatePrimCommand
.Methods
__init__
(prim_types[, usd_context_name])Constructor.
do
()undo
()- __init__(prim_types: List[str], usd_context_name: Optional[str] = None)
Constructor.
- Parameters
prim_types (List[str]) – List of primitive types to create, e.g [“Sphere”, “Cone”].
usd_context_name (str, optional) – The usd context to operate. Default is None, which means the default UsdContext.