CreatePrimsCommand#
- class omni.usd.commands.CreatePrimsCommand(
- prim_types: List[str],
- usd_context_name: str | None = 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: str | None = 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.