clear_scene
Remove all prims from the scene to reset for a fresh simulation. Optionally keep physics or environment to avoid reloading delays.
Instructions
Remove all prims from the scene.
Also empties any environment loaded by load_environment, which removes that environment's collision floor along with it — so a later create_physics_scene finds no floor and supplies its own. 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 |
|---|---|---|---|
| keep_physics | No | ||
| keep_environment | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |