Skip to main content

Scene Editor

The Scene Editor assembles a complete robotics environment in one file: a base physics scene, the bots placed in it with their controllers, and the prefabs that tasks can spawn into it. A SuperDex scene is a .superdex_scene file, written as JSON, that references these assets rather than copying them, so improvements to a bot or a prefab show up in every scene that uses it. Open a scene, press Space, and the whole workcell simulates together.

A scene is configuration, not a control program. What it holds, and how an application loads and runs it, is covered in the SuperDex Robotics guide to SuperDex Scenes.

The public workbench with an FR3 arm and two nine-hole peg-test prefab instances placed on the tabletop.
A scratch workcell: the workbench, FR3, and two task objects.
Studio's scene configuration panel with the workbench base scene, tabletop task root, nine_hole_test spawnable prefab, and FR3 bot entry.
Base scene, task root, spawnable catalog, and bots. The panel shown as Bot Scene Info is now called Scene Info.

Creating a Scene​

Right-click empty space in the Asset Browser and choose Create → Scene.... Studio adds an empty .superdex_scene to the current folder and lets you name it. Double-click a .superdex_scene or .superdex_scene_archive to open it.

A loose scene is the editable source file. Its assets stay separate: paths resolve relative to the scene file or through tags such as @prefabs in a .superdex_root marker. If Studio cannot write a reference, it warns beside the slot. Keep the scene and its dependencies in a portable layout so another checkout can open them without your local workspace settings.

Editor Windows​

WindowWhat you do thereOpen by default
Scene InfoThe scene's metadata, base scene, spawnable prefabs, bots, controllers, and slots.Yes
Task PreviewLoad and edit a task's spawned objects and termination criteria, and preview the objects in this scene.Yes
Physics SettingsSimulation and debug-draw settings for this editor.No

Every edit restages the viewport immediately and is undoable with Ctrl+Z. The viewport has no transform gizmo: place bots and objects numerically. Editing is locked while the simulation runs.

Scene​

The Scene section of Scene Info holds the environment:

  • Base Scene is a prefab, usually a scene prefab, holding the fixtures. Its gravity, solver, and contact filter settings are the scene's.
  • Task Root, when enabled, sets the task frame in the world. Place it at a meaningful origin, such as the tabletop. Top-level task objects are placed relative to this frame, or to the world origin if Task Root is off.
  • Spawnable Prefabs is the catalog of objects a task can place. Use + Add Spawnable Prefab, assign a physics prefab, and give the entry a unique, stable Name, such as block. Listing it here does not place it in the scene, and spawning it does not change the base scene's physics settings.

Add an entry with its + button, reorder entries with the arrow buttons, and remove them with the trash button. The same controls work for every list in the window.

Bots​

Each entry under Bots places one bot:

  • Name identifies the bot in the scene; slots and controllers refer to it.
  • Bot is the .superdex_bot or .superdex_bot_archive to place.
  • Spawn Transform places it in the scene.
  • Initial Pose sets the joint configuration it spawns in, with the same sliders as the Bot Editor's Default Pose. Picking another bot resets it to that bot's default pose.
  • Controllers attaches controllers to the bot. Add Controller offers the built-in controller types, or Custom... for a type registered by your application. Each controller has a Name, a Type, and Parameters: the type's defaults, a .superdex_controller file (Open... or Save As...), or inline JSON.

A bot entry can also set "hasGravity": false in the scene file to build that bot without gravity, as for a robot whose own controller compensates for it; the scene's other actors keep their gravity. Studio has no control for this setting, but it keeps it when saving the scene and simulates the bot without gravity.

The expanded FR3 scene entry showing its bot asset, spawn transform, initial-pose sliders, and a pose controller with type MOCHI_ARTICULATED_POSE and default parameters.
FR3 placement and initial pose, with an articulated-pose controller configured. Defaults are not a tuned control loop.

Slots​

Slots describe roles that one of several bots can fill, such as a "right" arm that can be either of two arm-and-hand combinations. Add a slot, name it, and add the bots that can fill it. The radio button beside each bot picks which one the editor shows and simulates; this choice is a view setting and is not saved in the scene.

Tasks​

A scene defines the workcell; a task (.superdex_task) defines which objects start an episode and where. One scene can host many tasks, and the same task can be previewed on another scene that offers the same spawnable names.

  1. Prepare the objects. Open or create their assets in the Prefab Editor. Check collision geometry and, if the object will be visible to a renderer, its render model. Register each prefab under Scene Info → Scene → Spawnable Prefabs, then save the scene.
  2. Open a task. Use Create → Task... in the Asset Browser, or duplicate a task whose setup you want to reuse. With the scene active and stopped, use Task Preview → Load Task... or double-click the task in the Asset Browser.
  3. Place the objects. In Spawns, choose + Add Spawn. Give it a unique Name (such as block_left), then select its Prefab (such as block). Prefab binds to the exact scene entry name, not its filename. Several spawns can use the same prefab. Set Parent and Spawn Transform: a top-level spawn is relative to the task root; a child is relative to its parent spawn, not to an actor inside that prefab.
  4. Set the outcome (optional). Under Termination Criteria, expand Success or Failure and add criteria to its Criteria list with +. Choose each criterion's type (SphericalProximity, RelativeBounds, or AxisAlignment) and name the task objects it compares: a spawn's Name, or <spawn>.<part> for one of its actors or links. Combinator decides whether All or Any of the group's criteria must hold, and Validation Time S how long, in seconds, they must keep holding before the outcome counts. The trash button beside a criterion removes it.
  5. Validate and save. Check the placement in the viewport, then Play or Step to spot interpenetration or parts that fall at startup. While simulating, Task Preview switches to an Initial or Current transform table. Stop, then use Save Task or Save Task As... to write the separate task file. Reopen the loose scene and task together to check the saved references.

If task objects disappear while you edit, read the warning in Task Preview and check the Log Console. Check for an unknown spawnable name, a missing asset, duplicate names, or an invalid or cyclic parent relationship.

Renaming a spawn updates the criteria that refer to it, including references to its parts. A spawn name cannot contain ., which criteria read as the start of a part. Criteria are checked when you finish an edit, load the task, or undo; a problem shows as a warning in Task Preview and in the Log Console. A group with no criteria leaves that outcome unauthored, which is not the same as an outcome that never happens.

Studio previews the nominal layout. Pose Randomization Class names a class for your runner to apply at reset; the preview does not sample it. Playing the scene does not evaluate the criteria either: to run a scripted motion against them and get a success or failure verdict, use a bot-scene Asset Tuner with this task. See Bot Tasks for runtime reset, randomization, and termination, and for what each criterion type measures.

Task Preview with the nine_hole_peg_test_transfer spawn and the Success group expanded: Combinator All, one SphericalProximity criterion between nine_hole_peg_test_transfer.right_board and nine_hole_peg_test_transfer.left/peg_1/peg, comparator LessThan and threshold 0.05 m, with Failure collapsed below.
A success criterion: the right board and the left test's first peg within 0.05 m of each other.
Task Preview's Spawns list with pegboard_left expanded and pegboard_right below it, both using nine_hole_test, with the first spawn's task-root parent and transform visible.
Two named task spawns sharing one prefab. Their tabletop placement is shown in the workcell above.

Simulating​

Press Space, or Play in the viewport transport, to simulate the whole scene: the base scene, every bot (only the selected bot of each slot), and the loaded task's objects. Studio loads the scene's controllers but runs no control loop of its own; to command them, drive the scene from the SuperDex Robotics API, or script their inputs in a bot-scene Asset Tuner. Force-drag any body with the mouse, and press Esc to return everything to where it started. See Simulating Physics.

Archives​

The Scene menu packages and unpacks scenes:

ItemWhat it does
Create Scene Archive...Writes a .superdex_scene_archive holding the scene and everything it references, transitively. Save the scene first. Also on a scene's Right-click menu in the Asset Browser.
Extract Archive to Loose Files...For an open archive: extracts it into an empty folder, adds that folder to the workspace, and opens the extracted scene.
Export Simulation PrefabWhile simulating: exports the scene's current state as a prefab.

Keep the loose scene and its referenced assets as the source for ongoing edits. Make an archive when you need to share a self-contained snapshot. Save on an open archive overwrites that archive, not the original loose files. A task is not part of the archive; share its .superdex_task separately.

See Also​