clear_scene
Remove all prims from the scene, including loaded environments, while preserving the default light to prevent black renders. Optionally retain physics or environment for faster iteration between attempts.
Instructions
Remove all prims from the scene.
Also empties any environment loaded by load_environment, so a later create_physics_scene(floor=True) does not stack a second ground under the first. The stage's defaultLight is always kept — a stage with no light renders black, which looks like a broken camera.
Args: keep_physics: If True, keep physics scene prims. keep_environment: If True, keep the loaded environment. Reloading one costs seconds, so pass this when clearing objects between attempts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command_id | No | ||
| keep_physics | No | ||
| idempotency_key | No | ||
| keep_environment | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |