create_prim
Creates a new USD prim in an Omniverse scene—such as a cube, sphere, camera, light, or referenced USD file—at a specified prim path.
Instructions
Create a new prim in the scene.
Types: Cube, Sphere, Cylinder, Cone, Capsule, Xform, Camera, DistantLight, SphereLight, etc.
Or load a USD file via usd_path. A prim already at prim_path keeps its type: one of another type is refused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | A uniform scale, or [sx, sy, sz] | |
| position | No | [x, y, z] in the stage's units (usually metres) | |
| rotation | No | Euler angles [rx, ry, rz] in degrees, or a quaternion [w, x, y, z] | |
| usd_path | No | A USD file to load as a reference instead | |
| prim_path | Yes | Where to create it, e.g. "/World/MyCube" | |
| prim_type | No | USD type name, e.g. Cube, Sphere, Xform, DistantLight | Xform |
| enable_physics | No | Add the RigidBody and Collision APIs |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |