ToyFix User Guide
ToyFix is a small, very nerdy desktop tool for editing, animating, and rendering scenes. Open a scene, scrub its timeline, change a material or camera, and see the result immediately.
Philosophy
Keep the app small enough to understand and fast enough to poke at. One main timeline drives node poses, material properties, camera cuts, and shader time. Blender export and legacy ToyFX shaders provide ways to bring existing content into ToyFix.
The keyboard and direct prompts are first-class controls. Use a short key sequence when your hand is on the mouse, or ask Codex to inspect the same live scene, change a named node, or jump to a frame. The viewport and timeline give you direct feedback. Ordinary single keys act on the scene or start a command. Modifier chords handle broader controls. F9 is the viewport settings prefix.
Go programming language is a useful comparison for how we choose features. Keep the feature set small and give each common task one clear workflow. A keyboard command and a Codex prompt can invoke the same operation with the same result. When a new feature overlaps an existing one, look for a way to extend the existing workflow.
ToyFix uses OpenGL ES 3.0 through SDL3. Its overlays use bitmap fonts, and the default mesh material is Phong.
How we develop ToyFix
We work out how ToyFix should behave by making small scenes and playing with them. In the loading bay, a parcel arrives, a barrier rises, and there is a reason to film what happens. The interesting design question came one step later. Once you have placed raise in the movie, how do you make lower for the same barrier?
At first, pressing K on the movie timeline could extend the existing animation. That felt convenient while the barrier had only one move. With a second move in mind, it was hard to tell which clip would receive the key. We removed that shortcut from the movie timeline. Now you open lower, see its name above the local playhead, and press K there. You can try it in an Interactive rule and decide later where it belongs in the movie.
We keep these little scenes around so we can return to the exact moment a design felt awkward. Sometimes the best outcome of an experiment is a behavior we can delete and one less rule for everyone to remember.
First run
Launch ToyFix without a filename for an empty, untitled scene. The violet sphere marks the world origin and serves as the orbit focus. Press A to add your first node. Passing a scene filename opens that project directly. Press F1 for this guide.
Ctrl+O opens the native chooser. If the Linux chooser is unavailable, the inline ToyFix Open scene picker lists Project, Home and mounted Volumes. Double-click or press Enter to open an entry. Click Enter path or press Ctrl+L to type a file or folder path. Esc cancels. Ctrl+Shift+O opens the workspace navigator on all platforms. Each window starts at the executable?s folder until you open or save a project. A successful scene open or save sets the workspace to that project?s folder. The navigator lists directories, ToyFix scenes, and importable FBX files. Up/Down, the wheel, or a click highlights an entry. Enter or a double-click enters a folder, opens a scene, or imports an FBX under the active node. Right enters a highlighted folder. Left or Backspace goes up while browsing. Backspace edits the filter while searching. Opening .. at the workspace root makes its parent the new workspace. Browsing below the root is temporary. Press W or right-click a row to explicitly use that directory, or a file?s containing directory, as the workspace.
Inside the workspace navigator, press Ctrl+F or click the folder heading to filter the current folder by filename. Spaces and the letter W are searchable. F3 and Shift+F3 cycle matches. Esc leaves text entry with the highlighted match available for W. In browse mode, Esc closes the HUD.
Press Ctrl+O to open a .toyfix file. You can also drop a scene file onto the window or pass its path on the command line. Use the window close button to quit. In the viewport, Esc clears the selection when no command is active. If changes are unsaved, ToyFix asks whether to save, discard, or cancel before leaving the scene.
Examples to try
examples/startup-chair.toyfixhas the chair, workbench, and robot arm. Click a visible arm part repeatedly to work through the hierarchy.examples/rigid-arm.toyfixisolates the animated rigid assembly. Inspect the shoulder, elbow, and wrist at different frames.examples/two-shader-panels.toyfixhas two animated shader panels and a camera move between them.examples/sh16b-escape.toyfixshows a multipass tunnel effect on a rectangle.examples/uv-pulse.shaderis a small shader for trying mesh UVs.
Select and navigate
Left-click a visible mesh to select it. If it belongs to a hierarchy, the first click selects the outermost group. Click a mesh inside that group again to descend one level toward it. A group selected on its own gets a red outline. In a multi-selection, all outlines use the same cyan and only the active node glows. Click empty viewport space to clear the selection. An Empty can be selected as a group through its children, or addressed by name in MCP.
Ctrl+F opens the translucent scene navigator with search focused. Each name has a type glyph: a wireframe cube for a mesh, three axes for an empty, a camera, or one of four light symbols for point, directional, spot, and area lights. Type any part of a node name to filter the tree and reveal matching branches. F3 and Shift+F3 cycle through matches and can reopen the navigator with the last query. Use Up and Down to browse, Left to collapse or go to the parent, and Right to expand or go to the first child. Space works like Shift-click in the viewport. It adds the highlighted node, makes an already selected node active, or deselects it if it is already active. The navigator stays open. Selected names appear in cyan. Enter selects only the highlighted node and closes the navigator. Esc closes it with the current selection.
The upper-left callout shows the selected node's name. Press F2 to edit it, Enter to confirm, or Esc to cancel. New node names must be space-free. Blender and FBX imports replace spaces with underscores. Existing animation and interaction YAML can keep referring to the original name after a rename. Camera and light handles are sized to about one tenth of the shorter viewport dimension. Zooming preserves their apparent size. The lower-left world coordinate system (WCS) gizmo follows the view and moves above the visible timeline rows. The local coordinate system (LCS) gizmo sits at the selected node's origin and follows its transform. Both show X in red, Y in green, and Z in blue. Press F9, then F, to cycle the .bdf fonts in the fonts/ folder beside the executable. The callout starts with helvR12.bdf when present.
| Control | Action |
|---|---|
| Shift + middle-drag | Pan the preview. |
| Android stylus or touch | Tap Orbit, Pan, or Zoom at the top of the editor, then drag in the viewport. Drag up to zoom in or down to zoom out. Lift to finish each gesture. Tap Select to resume picking. The timeline works with every tool. With a keyboard, Alt+1 through Alt+4 select the tools from left to right. Alt+arrows orbit or pan, and Alt+Up/Down zoom. |
| Middle-drag or Alt + left-drag | Orbit around the focus. Horizontal drag turns around world Y, and vertical drag tilts around the view's right axis. |
| Mouse wheel | Zoom toward the framed focus, or toward the pointer when there is no framed focus. |
| Page Up / Page Down | Zoom in or out around the focus or view center. |
| Home | Fit the whole scene above the timeline, using the window aspect ratio and the current viewing angle. |
| F | Center on the selection and set a fixed orbit pivot, keeping the apparent scale at that point. With multiple nodes selected, use the centroid of their world-space origins. In Vertex Edit mode the pivot is the selected vertex or the center of the vertex selection. A translucent sphere marks the pivot. Moving the node leaves the view fixed. With nothing selected, frame the scene. |
| V, then FR, BA, TO, BO, LE, or RI | Snap to front, back, top, bottom, left, or right around the selection or whole scene. Front is Y-up and looks down −Z. |
| V R E | Restore the imported camera view. |
Move, rotate, and scale
Select a mesh or group and press M to move, R to rotate, or S to scale. Press X, Y, or Z to constrain the edit to a local axis. A selected parent carries its descendants. The edit offsets the node's poses across the timeline.
- For numeric input, type a value and press Enter. Use minus for a negative value, a decimal point for fractions, and Backspace to correct the entry. Move uses scene units, rotation uses degrees, and scale uses a positive multiplier such as
1.5. Without an axis, numeric move uses local X, numeric rotation uses local Z, and scale is uniform. - For mouse input, left-drag in the viewport after starting the command. Release to apply. Without an axis, move follows the pointer in the current view plane, rotate acts like a view-oriented trackball, and scale is uniform. An explicit axis constrains the drag. Move follows that axis as it appears on screen, even from the opposite side. If the axis points almost directly at the camera, orbit before dragging along it.
- Press Esc to cancel an active transform. The title bar shows the pending command and numeric input.
Interactive mode
Launch a playable project directly with toyfix -i examples/air-hockey/air-hockey.toyfix --no-mouse-camera. -i and --interactive enter the ordinary F5 run with recording off. Mouse navigation defaults to enabled; --mouse-camera selects it explicitly. --no-mouse-camera disables mouse pan, orbit and wheel zoom in Interactive mode for this window. Gameplay clicks, keyboard zoom, and editor navigation remain available. Esc returns to editing.
Press F5 to enter Interactive mode. The editing overlays give way to a centered mode label. Space toggles playback. Shift+middle-drag pans. Middle-drag or Alt+left-drag orbits. Use the wheel or Page Up and Page Down to zoom. Esc returns to the edit view and playhead. Left-click either triangle button on the CRT in the chair example to cycle between static, a test card, and an animated signal. Every channel uses elapsed time from the start of the run. Switching channels leaves the saved scene untouched.
To wire another scene, put a scene.toyfix.inter file beside it. The chair example's sidecar shows the supported YAML schema. Use exact mesh names and shader paths relative to the sidecar. List looks in channel order and bind a mesh to a channel with cycle and a step of 1 or -1. Use play: clip_name under on_click for a press or under on_release for a release. It animates the clicked node unless the binding also specifies another target. Releasing off the mesh still fires the release binding for the node originally pressed. Use block mappings and plain values. Feedback shaders that depend on earlier frames are currently excluded from interactive looks.
Open examples/box-physics.toyfix and press F5 to run the box-physics experiment. Click a crate to push it. Esc restores the authored arrangement. The example sidecar lists each collider under physics, with body set to static or dynamic and box giving its full X, Y and Z sizes. The box is centered on the node origin. An optional friction value from 0 to 1 controls how readily the box slides. The default is 0.65. Dynamic nodes must be unparented rigid meshes. Collider transforms must be unscaled and unanimated. Simulation runs only in Interactive mode. Open examples/box-physics-reactphysics3d.toyfix to run the same layout with ReactPhysics3D. The top-level physics_engine setting selects reactphysics3d, bullet3, or qu3e. Scenes that omit it use qu3e. The Bullet version is examples/box-physics-bullet3.toyfix. Set physics_engine = bullet3, reactphysics3d, or qu3e in ToyFix.cfg to override the sidecar after restarting.
F4 shows project notes in a translucent panel. Add project_text "notes.txt" to the final SETTINGS 1 section of the .toyfix scene and put the UTF-8 text file beside it, or specify another relative path. Reopen the project after editing the setting. The mouse wheel, arrow keys, Page Up and Page Down, and Home and End scroll the notes. Press F4 again or Esc to close.
In Bullet3 rigid-body scenes, press P to pause, pick a dynamic box, and use M, R, or S to change its pose. Press P to resume from the new pose. A static collider can use plane: true for an infinite local XZ floor. Use push_local for a launch direction that follows an actor's orientation.
Press F7 to restart the current run at its entry frame. The run keeps its recording setting and asks before replacing an unbaked recording. In a Bullet3 rigid-body scene, press P to pause, then F8 to advance one 1/60-second physics tick. The run stays paused. Press P again to resume.
Air Hockey
Open examples/air-hockey/air-hockey.toyfix and press F5. Press Space to serve and use the arrow keys to move the cyan paddle on your half of the table. Aim for the pink goal. First to three wins. Press Space to retry after a match, P to pause, or F4 for scene notes.
The Bullet3 interactive sidecar supports named inputs, integer state, and rules evaluated in YAML order. Each rule has a when event, an optional if comparison (== or >=), and a do list separated by semicolons. The events are start, step, pressed INPUT, held INPUT, entered BODY SENSOR, outside BODY, and timer NAME. outside fires when a body with reset_bounds is returned to its authored position. Rules after start run after each physics step, so P pauses the timers and F8 advances them one step.
set VAR INTandadd VAR INTchange state.after NAME MSstarts or replaces a one-shot timer.play CLIP NODEstarts a named clip on a visual node. Retriggering restarts its clock at zero. Clips withfrom_currentblend from the current pose. Collider nodes and their ancestors cannot take a visual clip. List an unkeyed root clip target inrecord_nodesto bake its motion alongside physics. While paused, MCPinspect_rulesreports the last rule, current state and pending timers in milliseconds.reset BODYrestores a dynamic body to its authored pose and clears velocity.velocity BODY X Y Zsets linear velocity in world coordinates.move BODY AXIS SPEED MIN MAXslides an unkeyed kinematic body along a world axis.follow BODY TARGET AXIS SPEED MIN MAXmoves toward another body at a capped speed. The bounds are world coordinates and speeds are in units per second.hud TEXTsets a line of the Interactive HUD. Use$VARto show the current value of a state variable.
Physics labs
Physics, timelines, and rendering covers simulation concepts and proposed live and movie workflows.
Open a lab from examples/ and press F5. Remove the global physics_engine override to let each lab choose its own backend. Left-click applies the body's configured push and spin. Right-click queries the engine's collision shapes and reports the nearest hit in the title bar. Esc restores the authored scene.
- All labs have a purple trigger plate and a filtered shelf on the left. Watch the red box pass through the trigger and the sensor count increase. The purple box passes through the gray shelf and lands on the floor because their collision layers differ. Click the red and amber boxes to compare restitution.
physics-lab-qu3e.toyfixhas a low-friction box and a compound T-shaped body on the ramp, plus a stack on the right. Click the base of the stack or the T shape.physics-lab-reactphysics3d.toyfixadds a rolling sphere, a capsule and a heavy compound lever. The amber beam swings on a Z-axis hinge. In the back row the green body swings on a ball joint, the cyan block slides vertically between stops, and the red block stays fixed.physics-lab-bullet3.toyfixadds a rolling cylinder and a thin barrier in front of a thick catch wall. Click the small cyan sphere and the small red sphere in the foreground. The cyan shot uses continuous collision detection. The red shot uses discrete steps and can tunnel through the thin barrier.
Last Train, No Brakes
Open examples/last-train-no-brakes.toyfix, press F5, and click each trolley in its launch bay. Both run down the same slope between physical guide rails. The rubber stop absorbs most of the impact. The steel stop sends the trolley back up the track. Each trolley uses a single sliding box collider.
Pneumatic Dead Letter Office
Open examples/pneumatic-dead-letter-office.toyfix, press F5, and click each capsule at the left. Both get the same push. The cyan capsule uses continuous collision detection and hits the thin dispatch flap. The magenta capsule can skip past the flap and cross the delivery sensor. Watch the sensor count in the title bar. Both transit labs select Bullet3 in their scene sidecars. Press Esc and F5 to reset and run again.
Flooded Relay Station
Open examples/flooded-relay-station.toyfix and press F5. Click the orange counterweight above the RELEASE sign. It drops onto the hinged arm, raises the floodgate, and releases three inspection canisters down the ramp into the collection bin. The lab uses Bullet3. Leave the global physics_engine unset or set it to bullet3. Press Esc, then F5 to run it again.
The floodgate drives two shared materials. Select Observation_Window, press C, and open OceanResponse. Scrub local frames 0 through 48 to see clear water turn murky. The side panels use CausticResponse.
Under material_drivers, a material entry names its hinge, two signed angles in degrees, and a material clip. The first angle samples local frame zero and the second samples the clip end. The sample follows a rebound and clamps outside the range. The driver works with Phong and Image-only shaders. Shader time continues while the gate holds still. MCP reports the fractional clip frame in driven_material_frames.
Use push: X Y Z to give a rigid body a click impulse. The default is zero. For a slider, specify slider: anchorX anchorY anchorZ lower upper. The travel limits include zero at the starting pose.
Zombie ragdoll
Open examples/zombie-ragdoll.toyfix. Leave physics_engine unset in ToyFix.cfg or select Bullet3. Press Shift+F5 to enter Interactive mode with recording, then Space to play the imported take. Click the zombie to hand its current pose and motion to the ragdoll. Esc discards the fall. After it settles, press Enter to bake a skeletal clip with the original animation before the fall. The library highlights the baked skeletal clip. Open it to inspect the fall, or place it on the character and save.
The demo uses models/another-zombie.fbx and its diffuse texture. Its .ragdoll sidecar maps the skin palette to capsule bodies and angular limits. The optional launch X Y Z adds world-space velocity at handoff. torque_bone BONE X Y Z applies a world-space angular impulse to the rigid body bound to that skin bone index. Both default to zero. The interactive sidecar defines the static floor. Use the Edit timeline after baking to preview or export the fall.
Two more ragdoll scenes use the same controls. Open examples/zombie-ragdoll-stairs.toyfix for an intact fall down six steps. Open examples/zombie-ragdoll-platform.toyfix to drop the zombie from a raised platform. A hard contact with the landing floor releases the head, both forearms, and both lower legs. The platform rig sets breakaway_velocity 1.55 .5 to add outward speed from the root and upward speed in world units per second at separation. Omit the setting to carry each part?s existing velocity through release. The detached pieces continue to collide and are included when you bake with Enter.
Object properties
Press O, then S, on a selected mesh to toggle smooth shading. Smooth shading averages face normals at each shared vertex, weighted by corner angle. Creases of 60 degrees or more stay sharp. Flat shading uses one normal per face. Meshes use their authored normals until you toggle this property. Undo and save include shading changes.
Mesh edit mode
Select an individual mesh and press Tab to edit vertices. ToyFix draws the stored triangle and quad outlines and the visible vertex points. Click near a visible point to select it, Shift+click to add or remove points, or press A to select all vertices. Click empty space to clear the selection.
Use M or S with the same mouse drag, numeric entry, and optional local axis shortcuts as node transforms. Scaling uses the center of the selected vertices. Esc cancels a transform, and Tab goes back to object selection. Vertex edits use the existing undo and save commands. Try examples/quad-panel.toyfix to see a quad without an edit-mode diagonal.
Press I to open a keyboard menu showing all three transform increments. Up and Down switch fields and save valid edits. Enter saves the current field and Esc closes the editor. During an unconstrained transform or a scale, Up and Down adjust the pending value. For an axis-constrained move or rotation, Up doubles the relevant increment and Down halves it. Left and Right apply a step immediately. For a move, they go along the negative and positive local axis. For a rotation, they turn counterclockwise and clockwise as seen from the tip of the selected axis looking toward the node. Defaults are 0.1 units, 15 degrees and 0.1 scale factor.
Press F9, then S, to toggle vertex snapping. During a mouse move, the selected vertex nearest the start of the drag snaps to a nearby vertex on any mesh in the scene, excluding the vertices being moved and the rest of the selection moves with it. Axis locks are respected. The upper-right column shows snap status and the current MSAA level. Press F9, then A, to choose Off or a supported sample count. Click a row or use Up/Down and Enter. Esc cancels. MSAA smooths geometry edges in the viewport, Render View and movie export. The default is 4×, or the highest supported setting below it. Save the project to store the choice in the scene file.
The current scene format stores triangles and quads as faces. The renderer triangulates quads for drawing. Existing scenes still load as authored triangles, and coincident corners from older files share a vertex for editing. New Blender exports retain triangles and quads and triangulate faces with more than four sides.
Timeline and playback
The playhead line crosses every visible timeline row. The white horizontal arrow scrubs the playhead. Away from the line, the black-outlined cyan arrow moves a main-timeline row’s strip. A white border marks the active row on the main timeline. Click a row to select it. Esc or a click elsewhere clears the selection. Delete removes the placement on the outlined row when it contains a placed clip or skeletal strip.
Ctrl+T shows or hides the timeline stack. Click or drag the bottom timeline to seek. The pointer changes to a horizontal resize cursor close to the playhead. The play button and Space toggle playback. Left and Right step by one frame. Ctrl+Home jumps to the first frame and End jumps to the last. In Render View, Home also jumps to the first frame. The title bar shows the Blender frame number and playback state.
Camera samples and rigid node poses are evaluated at the current frame. Shader time starts at zero on the first scene frame. The playhead and preview view are saved for your next session. Video export starts at the beginning of the saved range and follows camera cuts. Before the first cut it uses the first camera node. A movie needs at least one camera node. Preview navigation stays independent of the rendered camera.
The bottom ruler shows scene frame numbers for all tracks. Zoom in to see finer intervals. The cyan playhead extends from the tracks to the ruler. Use the mouse wheel over the main ruler to zoom the timeline around the pointer. Ctrl+wheel also zooms over the stacked tracks. Middle-drag over the ruler or any timeline track to pan horizontally. An unmodified wheel over the stacked tracks still scrolls the rows.
The amber triangles mark the inclusive render range. Left-drag either triangle to move it. A click opens a box where you can type an absolute frame number and press Enter. Esc cancels a drag or number edit. Save the scene before exporting. The full timeline remains available for editing and playback.
Arrange clips
A clip lives in the project library. A strip schedules that clip on the movie timeline. Select the barrier and press C to see clips authored on it, placed on it, or bound to it by Interactive actions. With multiple nodes selected, each pose or skeletal clip row identifies its target. Opening or placing that row uses its listed node. A recorded take shared by several selected nodes appears once. With no selection, C lists recorded takes. Choose New clip..., type lower and press Enter. The local editor opens at frame zero with a starting pose. Scrub to another local frame, pose the barrier with M/R/S, and press K to key it. Esc restores your movie playhead. You can create several clips on the same node this way, even when it already has strips.
To inspect an existing clip, double-click its name in the library or highlight it with the arrow keys and press Enter. To schedule it, drag its name onto the movie ruler or use Shift+Enter to place it at the movie playhead. For example, place raise at frame 25 and lower after it. Editing a shared source updates every placement. On a camera, C makes a cut and O then C opens its clip library. A character also lists its skeletal clips under Skin /. Placing one sets the character's active skeletal strip.
Click a strip or use Up and Down to select it. Drag it or press Shift+Left/Right to move it one frame at a time. Delete removes a named clip placement and keeps the source available. Strips can overlap when they drive different nodes or independent translation, rotation and scale groups. Placements that compete for the same group or extend beyond the scene are rejected.
Double-click a strip or press Enter to inspect its local time. The K shortcut is active only inside an editable pose clip. Scrub, transform the node and key it again to extend the clip. Inside a named clip, drag a later key to retime it, or put the playhead on it and press Shift+Left/Right. Its first key anchors local time zero. Esc restores the movie ruler and the playhead you left.
Press F6 in the ordinary scene view to inspect the recording set. Automatic lists the moving actors ToyFix can capture, with the reason beside each name. On Bullet3 rigid scenes these are eligible root actors and Interactive clip targets. Ragdoll scenes offer the skeletal actor. Click a node, or highlight it with Up/Down and press Space, to switch to a custom subset. Toggle the mode row to restore Automatic. Enter applies the draft and Esc cancels it. Save the project to write the choice to its Interactive YAML. An existing record_nodes list opens as Custom. An empty set brings up the HUD when you try to record.
Record with Shift+F5, then bake with Enter. The library highlights the new take. Place it explicitly when you want it in the movie, then set the render range as needed. The take contains the recorded transforms and the sampled values of driven material properties. Open the take to inspect its sampled tracks. Move the strip to retime the whole performance. Camera cuts and render range markers stay at their movie frames. Through MCP, get_state lists strip indices in display order, move_clip sets a strip's start frame and place_clip adds an instance.
Edit imported node tracks and legacy material tracks
Open the existing node or material strip to see its keys. Shift+click in the viewport to add a node and make it active. Shift+click an inactive selected node to make it active, then Shift+click it again to remove it from the selection. The translucent tracks stack over the viewport without changing its framing and share one frame scale and playhead. Scroll over the tracks to see more rows, or resize the window yourself. F focuses the centroid of the selected node origins.
To author new pose keys, open a named pose clip from the clip library. Move the playhead to another frame, use M, R, or S with the mouse or the numeric axis controls, then press K again to key the new pose. Clicking a track also enters pose editing. A key stores local translation, Euler rotation in degrees, and scale relative to the base pose. Key the starting pose first. Scrubbing to another frame, changing selection, or pressing Esc discards an unkeyed pose.
Click a diamond to select it and move the playhead there. Double-click a pose or material diamond or a purple camera cut tick to type its new absolute frame number. You can also click the key or cut once and press Enter. For a group of selected pose keys, the other keys move by the same offset. Shift+click toggles additional diamonds. Drag a pose diamond, material diamond, or camera cut horizontally to move it. Selected pose diamonds move together. The vertical snap guide helps align the dragged item with keys on other visible tracks. A move that would overwrite a key in the same track is rejected. Delete removes selected keys. E cycles each selected key's outgoing interpolation through linear, smooth, and hold. Key edits support undo and redo.
Save writes the keyframes to scene.toyfix.animation.yaml alongside the mesh scene. The same sidecar supports hand editing and keeps the Interactive mode clips. Use exact node names, including parent nodes when you want to move a whole hierarchy. Frame numbers are the same absolute frame numbers shown in the app. Try examples/startup-cube.toyfix for a short example.
version: 1
nodes:
Cube:
1:
translate: [0, 0, 0]
60:
translate: [0, 0.65, 0]
rotate: [0, 35, 20]
scale: [1.15, 1.15, 1.15]
120:
translate: [0, 0, 0]
Each key is a local offset on top of the node's saved pose, including any imported animation. Translation uses scene units in the base node's axes, rotation uses XYZ Euler angles in degrees, and scale uses positive multipliers. Components interpolate linearly. The first and last keys hold outside their range. Each key defaults to zero translation and rotation and unit scale for any properties left out.
Preview, picking, and export evaluate the same keyframes. Saving the mesh scene leaves its animation sidecar separate. To remove a tracked node, first remove its track from the YAML and reopen the scene.
The same animation sidecar can have a clips mapping for named Interactive mode animations. Clip keys use milliseconds starting at zero and accept the same translation, rotation, and scale as timeline keys. A clip plays once and holds its last pose. Set easing: smooth to ease between keys, or from_current: true to replace the first key with the current clip pose when triggered, which lets a release interrupt an unfinished press smoothly. The startup CRT uses these options for both buttons.
Imported characters
Drop an FBX onto the viewport in Object mode, or choose it with Ctrl+O, to add its mesh hierarchy, diffuse textures, and skeletal takes to the active scene. The imported group is placed under the active node, or at the scene root if nothing is selected. When dropping several files together, each imported group gets the same parent. With an external texture, keep the image next to the FBX. ToyFix copies the texture into fbx-assets/ beside the project and references it by a relative path on save.
Use add_character over MCP to convert an FBX or Blender project with one rigged mesh and animation takes. Pass the Blender executable path, or use Blender on your PATH. Blender runs in the background during conversion. ToyFix stores the mesh, skin weights, and sampled bone transforms in the scene and plays them without Blender. Diffuse textures use Phong. ToyFix imports images connected directly to Principled BSDF Base Color with the active UV map. To use an unlinked image from a Blender project, pass its datablock name as diffuse_image, for example Zombie.png.
Select a character to see its active clip and the teal playback band on its transform track. Use set_character_clip to choose a take, set its scene frame range, trim the zero-based source samples, and optionally loop it. Use ordinary pose keys to move the character through the scene. The startup Zombie uses the CC0 models/zombie.fbx and loops its Walk take. Rigging and skin weight edits stay in the source asset.
Saving, dirty state, and undo
- Ctrl+N (Cmd+N on macOS) checks for unsaved edits, then shows three templates. Click a row or use Up/Down and Enter. Esc keeps your current scene. Empty scene starts at the world origin. Stool gives you a selected quad mesh to edit. Zombie puts a seated observer at a miniature loading bay. Press F5 to start the conveyor. End sensors reverse the parcel and the gate lifts for travel in either direction. Ctrl+S asks where to save your own project.
- Ctrl+S or Cmd+S saves the current file. Ctrl+Shift+S or Cmd+Shift+S opens Save As. Choose a name and folder to make the copy your current project. Scene sidecars follow the new name and external assets stay linked. Each scene carries its own settings, including window placement. The MCP equivalent is
save_scene. Unsaved changes stay in memory. The floppy glyph in the first row above SNAP and AA marks a dirty project, including during a window drag or resize. Save stages the scene and sidecars together and attempts to restore the previous files if a replacement fails. - Geometry edits, transforms, shader assignments, playhead movement, preview navigation, and selection can make the scene dirty. Reopening restores the saved view, playhead, and selection, with playback paused.
- Ctrl+Z undoes a scene edit or viewport change. Ctrl+Y and Ctrl+Shift+Z redo it. A completed drag or burst of wheel zoom is one entry. Focus, view shortcuts, and view reset each count as one change. History holds up to 32 edits for the open scene. A new edit after undo clears the redo path. Selection, scrubbing, and saving do not create history entries.
- Keep the scene, its
.toyfix.shadersassignment sidecar, referenced shader files and their textures, and exported.toyfix.texture-*.ppmfiles together. Mesh texture paths are relative to the scene file. Shader image inputs are relative to the shader file. Preserve those paths when moving a project.
ToyFix stores snap, MSAA, window position and size, project notes and the postprocessing shader in the final SETTINGS 1 section of each scene. Moving or resizing the window marks the scene dirty and stays outside undo history. Save records the new bounds. Opening a scene restores its bounds or centers the window if they do not fit a connected display. Discard leaves the saved project untouched.
Bring a scene from Blender
- Use Blender 4.0 or later. Set the active camera, resolution, frame rate, and frame range. Build the scene from meshes and rigid parent chains. Empties make useful joints and pivots.
- Set the active UV map for textured meshes. To export a material image, connect an Image Texture directly to the Principled BSDF Base Color. Other materials use their viewport diffuse color.
- In Blender 4.0, open Edit > Preferences > Add-ons > Install, select
blender/export_toyfix.py, and enable ToyFix Scene Exporter. Choose File > Export > ToyFix Scene (.toyfix), pick the destination, and open the exported file in ToyFix. Keep its texture files beside it. For background exports use the command below.
blender -b scene.blend --python-exit-code 1 -P blender/export_toyfix.py -- scene.toyfix
build/clang/toyfix scene.toyfix
Use build/clang/toyfix.exe for the Windows executable. The exporter samples the active camera's evaluated view and projection and each node's transform through the inclusive frame range. Mesh geometry, split normals, and UVs are captured on the first frame. Blender's Z-up world is converted to ToyFix's Y-up world. Older flat ToyFix files open in their stored coordinates.
ToyFix supports rigid motion, including animated parent chains. Mesh deformation, armature skinning, inverse kinematics, and Blender's full material and lighting graphs are outside the exporter. To make editable Blender example files, run examples/make_demo.py or examples/make_rigid_arm.py with Blender in background mode and pass the output .blend path after --.
Assign and write shaders
Choose a material
Select a mesh and press O then M. The HUD lists the project's materials and highlights the current assignment. Click a row or use Up/Down and Enter to assign it. Esc cancels. With several nodes selected, only the active mesh changes. Ctrl+Z undoes the assignment. Open the studio stool to try the warm Ochre, cool Slate, and animated Scanlines presets.
Reference materials and shaders
A scene named room.toyfix keeps its material entries in room.toyfix.mat. Each entry names a material that meshes can share. Give it a preset file, or use an empty path to start with built-in Phong. Shader and property lines apply to the preceding material. For example, the first entry below inherits a preset and overrides its shininess, and the second uses a project shader.
TOYFIX_MATERIALS 1 material "Paint" "../materials/ochre.mat" property "shininess" 1 28 material "Monitor" "" shader "looks/signal.shader"
Preset files begin with TOYFIX_MATERIAL 1 and accept the same shader and property lines. A property specifies its uniform name, component count (1?4), and values. Use forward slashes for paths. Relative paths start at the file containing the reference, so a preset can travel with its shader. Absolute paths can point to a shared library. Saving writes overrides to the project and preserves the shared preset. The installed materials/ folder is beside the executable.
Interactive rules for this example belong in room.toyfix.inter. To use an older project, rename its .toyfix.interactive.yaml file to .toyfix.inter. The contents are still YAML.
Press A in Object mode for the Add HUD. Mesh lists the editable primitives and FBX import. Light lists Point, Directional, Spot and Area. Camera, Empty and Material are individual choices. Click a choice or use Up/Down and Enter. A primitive or empty is parented to the active node. A new camera captures the current framing. Esc cancels. For shader assignment, select an individual mesh and press O, then A to choose a .shader file, or drop the shader onto the viewport. If the mesh uses a named material, this changes that material's shader for every mesh that shares it. Press O, then P, to restore Phong.
Materials, lights, and camera cuts
Use MCP create_material to make a Phong material and assign_material to assign it to a mesh. Each mesh uses one material. The node callout shows the material and how many meshes use it. Set baseColor with three RGB values from 0 to 1 or shininess with one value of at least 1. Use set_material_shader for a custom shader and set any active float or vector uniform it exposes. ToyFix continues to supply shader time and channel inputs.
Material textures and UVs
Select a mesh that has a project material. Press O then T to see its texture slots and current assignments. Choose a slot, choose Register image... to browse for a PNG, JPEG or binary PPM, then choose the registered image. Click a row or use Up/Down and Enter. All meshes sharing the material see the change.
| Phong slot | What the image controls |
|---|---|
| diffuseMap | Image RGB multiplied by the material base color. Use white base color to preserve the image colors. |
| normalMap | Tangent-space RGB normals, positive Y along increasing V. Requires usable mesh UVs. |
| specularMap | The red channel scales highlight strength. Shininess still controls highlight width. |
| opacityMap | A cutout mask. Red below 0.5 makes a hole in both the render and viewport picking. |
Default restores the imported diffuse image for each mesh batch or the original image declared by a custom shader. None disables the map. Custom materials expose image samplers used by each pass, including unused-by-the-file channels sampled by the shader. For example, toyfixImage_BufferA_0 controls channel zero of Buffer A. Channels wired to another buffer keep their connection.
For a scene called room.toyfix, explicit save writes the catalog to room.toyfix.images. IDs remain stable as you add images. Paths are relative to the catalog. Keep the images available when moving or sharing the bundle.
TOYFIX_IMAGES 1
image 1 "textures/peeling-paint.png"
image 2 "../shared/plaster-normal.jpg"
In a material clip, select a texture row and press K to choose an image at the playhead. E edits an existing key. The selected image holds until the next key. Through MCP use register_image, inspect the IDs with get_state, and pass an ID as a single value to set_material_property or key_material_property. Zero means Default and ?1 means None.
To adjust a UV seam, enter vertex edit mode with Tab, select a vertex and press U. Choose the face corner. The tile shows its face outline and marks the active corner in yellow. Click the tile to place it directly, or type U and V separated by a comma and press Enter. The other faces sharing that vertex keep their UVs. Coordinates outside 0?1 are valid. MCP exposes get_corner_uv and set_corner_uv using zero-based batch and face-corner offsets.
Animate a material
- Select a mesh and press C. Choose New material clip? for its material, type a name, and press Enter. Each shared material appears once in the browser. The callout shows how many meshes use it. Every one of those meshes previews the edit.
- The editor lists the shader properties. Click a row or choose it with Up/Down. At local frame 0, press K and enter a value. For a Phong color, try
0.66, 0.38, 0.20. Confirm with Enter or cancel with Esc. Scrub ahead and key another color. Double-clicking the row at a frame also opens the value editor. For vec3 and vec4 uniforms, click [color picker] below the numbers or press Tab. The picker opens in HSV. Click HSV or RGB, or press M to switch. Both modes keep a separate alpha slider for vec4. Drag a slider, or select a channel with Up/Down and adjust it with Left/Right. Click Apply or press Enter to confirm. Esc returns to the numeric draft. Hue covers one revolution. The remaining sliders cover 0 to 1. Numeric entry supports the full uniform range. - Each property interpolates linearly between its diamonds. A vector or color keeps its components together. At a diamond press E to edit, Delete to remove it, or Shift+Left/Shift+Right to move it one frame. Drag a diamond horizontally to retime it with the mouse. Drag the white playhead anywhere across the property rows to scrub. Where the playhead crosses a diamond, Shift+drag moves the key.
- Press Esc to return to the movie. Move the playhead to the desired start, press C, highlight the clip and press Shift+Enter, or drag the clip from the browser to the timeline. You can place the same source several times. Editing the source changes all its placements. Deleting a placement keeps the source available.
Project palette. The picker shares 12 RGBA swatches across every material in this scene. Click a slot or use Up/Down to reach the palette row and Left/Right to select a slot. Store (S) copies the current color into that slot. Use (Space) recalls it into the picker. Clear (Delete) empties the selected slot. RGB properties use the first three channels and store with full opacity. Store and Clear are independent, undoable project edits. Press Ctrl+S after closing the editor to save them with the scene. MCP exposes the slots in get_state and edits them through set_palette_swatch.
The movie uses the material default before its first placement and holds the last sampled value across gaps. Two overlapping placements can animate different properties of a material. ToyFix rejects an overlap on the same property. Try Patina on the startup workbench, or open Lesson 5 to see Interactive sample a clip directly from a hinge angle.
Through MCP, create_material_clip opens an empty library clip. Use key_material_property or remove_material_key with a zero-based local frame in the open clip. Use place_clip with a null node and an absolute movie frame. Saving writes the source keys to the animation YAML and the movie placements to the scene.
add_light adds a point, directional, spot, or rectangular area light. Phong supports up to eight lights, subject to the OpenGL driver limit. Directional, spot, and area lights face local negative Z. Rotate or key their transforms as for other nodes. Area lights use four samples across the rectangle. Scenes with no light nodes use the legacy preview lighting.
add_camera captures the current view as a scene camera with a rectangular camera body. Its triangular tab marks the top of the front face. The arrow starts at the center of that face and points in the shooting direction (local negative Z). An unselected camera is light gray. Select a camera and press C at the playhead to insert or replace a cut, or Shift+C to remove it. Blender cameras keep their source node names (spaces become underscores). Older scenes with unnamed camera samples open with an editable Imported_Camera node. Purple ticks show cuts on the main timeline. A cut takes effect on its frame and holds until the next cut. The upper-left Camera callout names your current view. Press < or > to cycle through the free viewport and the camera nodes in the scene. Press V to toggle between your viewport navigation and the last camera viewed in this scene. Before you choose a camera, V uses the first camera node, and stays in the viewport if the scene has none. F12 shows the current view at the output aspect ratio. Press it again or Esc to resume editing. While looking through a camera node, use the usual pan, orbit, zoom, focus and frame-extents controls to edit its shot. One drag or wheel gesture is one undo step. Switching back to the viewport recalls its independent framing. Camera cuts still determine the movie camera. Gizmos and the free viewport are excluded from export.
Source and inputs
Write GLSL ES 3.00 using mainImage(out vec4 color, in vec2 coord). A plain single-pass shader receives normalized mesh UVs. A shader with buffers, explicit channels, or iResolution receives pixel coordinates derived from those UVs. Use texture2D or the texture alias for 2D sampling.
For a sectioned file, use *** Info, *** Common, *** Buffer A through *** Buffer D, and *** Image. Each pass can declare up to four input channels in comments. Texture paths are relative to the shader file.
// iChannel0: textures/grain.png filter=nearest wrap=repeat vflip=yes
// iChannel2: Buffer A
Image inputs support PNG and JPEG and default to mipmap filtering, repeat wrapping, and vertical flipping. Buffer inputs default to linear filtering and clamp wrapping. Set filter=nearest|linear|mipmap, wrap=repeat|clamp, or vflip=yes|no as needed. ToyFix supplies iTime, iTimeDelta, iFrameRate, iFrame, iResolution, iChannelResolution, and the four 2D samplers. Live mouse, audio, and keyboard textures are unsupported.
Buffers render at the scene resolution in A-to-D order. References to the current or a later buffer use the previous frame. Feedback may replay from the beginning when you seek. Multipass effects need framebuffer objects and renderable floating-point textures on your OpenGL driver.
Project scripting and console
Open either inspection gate under examples/inspection-gate. Both projects send a parcel across a sensor and raise a barrier. Press F4 for the experiment or F5 to start. The barrier's motion belongs to the named clip raise. To inspect its keys, leave Interactive, select Barrier, press C, and open the clip.
The LANGUAGE scheme or LANGUAGE yaml line follows the object count in the scene header. Geometry, settings and movie placements stay in the ASCII scene. Append .inter.scm or .inter.yaml to the scene filename for authored behaviour. Material, image, direct shader assignment and animation declarations use the same language suffix. The editor writes project data on Save. Save As copies the behaviour source verbatim. Open trusted Scheme projects as you would run a local program.
In YAML, setup declares bodies. Each rule has a when event and an ordered do list. Scheme declares the same bodies and registers a procedure with on!. The gate uses start, entered actor sensor, finished node clip and timer name. A body takes a node, kind (static, dynamic or sensor), three box dimensions and optional friction. The examples use Bullet3. Crossing the infeed stops the parcel and calls play-clip. Triggering a playing clip starts its clock again. A clip with from_current starts from the node's current offset.
The gimbal lock bench demonstrates three nested rotation axes. Press F5 and try T before and after L. Once the middle ring reaches 90 degrees, the outer and inner axes point in opposite directions. Equal turns cancel and the gold pointer stays still. Press U to run the Scheme recovery. It re-indexes the aligned rings, tilts the middle ring away, then returns the rig home. Press T to test again or F4 for the mouse controls and walkthrough. Press V for the camera mounted on the inner ring. G repeats a beacon pass. Compare its framing before lock, at lock, and after recovery.
From home, press D or click the gray grid for a double take. Watch the blue and red tabs from outside, then replay through the lens with V. Maintaining the chosen camera roll during a 16-degree beacon pass requires both rings to turn about 152 degrees. The second take delays the outer ring by 300 ms. The camera loses the beacon in mid-shot and still reaches the same end framing. P pauses and F8 steps the run.
Open either CRT button project under examples/crt-buttons and press F5. Hold the left mouse button on a triangle, drag away and release. The mesh that received the press receives the release, even over another mesh. Each event can have its own handler. Scheme uses (on! '(pressed Channel_Up) (lambda () (play-clip 'Channel_Up 'button_press))). In YAML the equivalent rule has when: [pressed, Channel_Up] and a play-clip action. Use released for the return. Pausing or losing window focus releases a held mesh once. The Interactive HUD and MCP inspect_rules show the latest handled event.
For keyboard input, register key-down Up and key-up Up using SDL key names such as Left or A. Interactive dispatches an unmodified key press once and remembers it until release. Auto-repeat does not retrigger it. App shortcuts take precedence. Pausing, losing focus, or opening notes or the console releases held keys. Each new run starts with no keys held.
A signal is an event you name. Use it when several handlers should trigger one action. In the CRT projects, pressing the Up key or clicking the up mesh sends signal up-press. Only the signal handler specifies the button clip. During Interactive, try (emit 'signal 'up-press) in the Scheme console or emit: [signal, up-press] in YAML. Send up-release to return the button. Signals run immediately in the caller's action sequence.
A channel gives one mesh a list of project materials to display during Interactive. Declare (channel 'Screen 'TestCard 'Signal 'Static) in Scheme or channel: [Screen, TestCard, Signal, Static] in YAML setup. The first material appears when the run starts. A handler or the console can call (cycle-channel 'Screen -1) or cycle-channel: [Screen, -1]. Use 1 for forward and -1 for backward. Both directions wrap. Query (current-look 'Screen) or current-look: Screen for the current material name. Paused MCP inspect_rules lists all channels. Phong and custom shader materials use their project properties. Shader time follows the run clock across switches. Feedback shaders are unsupported. Exiting restores the authored material. Recording a take does not capture channel changes.
The gate releases the parcel when the raise clip reaches its final pose. Retime its last key to change how long the parcel waits. A non-looping clip fires its completion handler once per completed playback. Replacing it midway drops that playback's completion. Looping clips keep playing until replaced.
The outlet sensor stops the parcel, lowers the gate, and schedules reload after 1500 milliseconds. When the timer fires, the parcel returns to its starting pose and begins another trip. Define a handler for each timer name. Scheduling that name again replaces its deadline. Cancelling it clears its pending deadline. Timers belong to the current run. They advance in 60 Hz simulation steps, including in projects with no physics bodies. Pause freezes the countdown, F8 advances one step, and restarting clears pending timers before running the start handler.
On each step ToyFix collects due timers, samples clips, then delivers clip completions, due timers (in name order), and sensor entries. Events already due on that step are delivered once. A handler can schedule the same timer for a future step.
Press P to pause and F10 to open the console. Enter a Scheme expression or one YAML action. Enter submits, Shift+Enter inserts a newline, Up/Down recalls history, and Page Up/Down scrolls output. Esc returns to the viewport. The Scheme console shares definitions and variables with the current project handlers. YAML accepts the same action mappings you can put in a rule.
| Experiment | Scheme | YAML |
|---|---|---|
| Inspect world position | (inspect 'Barrier) | inspect: Barrier |
| Invoke the arrival handler | (emit 'entered 'Parcel 'Infeed) | emit: [entered, Parcel, Infeed] |
| Play the clip directly | (play-clip 'Barrier 'raise) | play-clip: [Barrier, raise] |
| Restart the outlet countdown | (after 'reload 3000) | after: [reload, 3000] |
| Cancel the countdown | (cancel-timer 'reload) | cancel-timer: reload |
| Reset the parcel | (reset 'Parcel) | reset: Parcel |
| Send it down the belt | (velocity 'Parcel 2 0 0) | velocity: [Parcel, 2, 0, 0] |
Restart with F7 and pause immediately. Emit an arrival, inspect Barrier, advance a few physics steps with F8, then inspect it again. The Y value rises only as the simulation advances. In the Scheme gate, evaluating admissions gives the number of arrivals since start. MCP exposes the same console through eval_project and the paused event and remaining timer milliseconds through inspect_rules. The paused HUD also shows pending timers. Timer delays range from 1 to 60000 ms.
To change the paint, leave Interactive and select Barrier. Press O then E, choose baseColor and press Enter. Type RGB components or press Tab for the picker. Confirm, save, and reopen. All meshes sharing that material use the new base value.
Render an MP4
To apply a fullscreen shader, set postprocess_shader "relative/path.shader" in the scene's final SETTINGS 1 section. Remove the setting to disable it. Press F9, then P, to toggle the effect in the live viewport, including Render View and Interactive mode. It starts off when opening a project. Export always uses the configured shader. Use an Image pass and declare one input with // iChannel0: frame filter=linear wrap=clamp. The frame input contains the rendered camera image at the current output size. Other channels can load textures. Reopen the project after editing the setting.
Open examples/zombie-ragdoll-stairs-notebook/zombie-ragdoll-stairs.toyfix and press F9, then P, to see the notebook effect. Press F12 to render the currently viewed camera. To render the fall, enter Interactive mode with Shift+F5, then bake the ragdoll motion with Enter and place the highlighted skeletal clip before saving and exporting.
Save the scene, then press Shift+F12 to choose an MP4 destination and export the render range. Rendering runs separately from the viewport. The shortcut uses pythonw.exe on Windows or python3 on Linux from PATH.
Install Python 3 and FFmpeg with the libx264 encoder, then run this from the checkout. The MP4 contains 8-bit H.264 video for broad playback compatibility. A working OpenGL ES 3 driver and a display session are required.
python render_video.py build/clang/toyfix.exe scene.toyfix output.mp4
On Linux, use python3 and build/clang/toyfix. The encoder uses the saved resolution, frame rate, and inclusive render range. It pads odd dimensions by one pixel for H.264. Viewport overlays, selection outlines, and preview navigation stay out of the video. The MCP tool render_video exports the saved file and replaces an existing output at the requested path.
A character's default pose
Without a movie placement, a character holds the first sample of its first skeletal clip. Zombie starts seated and the main timeline is empty. Select the Zombie mesh and press C to inspect its clips. Enter previews the highlighted clip. Shift+Enter places it at the playhead, or drag it onto the timeline. Delete removes a selected skeletal strip and restores the default pose. The clip stays in the library. Recording Interactive motion adds a take to the library, ready to place separately.
Track a moving target in Interactive mode
The Zombie template uses this mapping in its .toyfix.inter file:
look_at: Head: Parcel
The node on the left turns its local +Z axis toward the node on the right, with local +Y as up. Place its origin at the desired pivot, for example the neck. Tracking follows the target after physics moves it and ends when you leave Interactive mode. You can also aim a prop at an animated node. Give the watcher a single rotation controller: assigning it a collider or a simultaneous Interactive clip conflicts with tracking.
Control the live app from Codex
Build ToyFix and register the local Python MCP server. Replace the example path with the absolute path to your checkout, then reconnect or reopen the Codex thread.
codex mcp add toyfix -- python C:/path/to/toyfix/toyfix_mcp.py
Use python3 on Linux. Pass --app /path/to/toyfix after the script path if you need to specify the executable. If one matching ToyFix window is open, the server can attach automatically. Use list_windows and attach_window to choose among several. open_scene can launch ToyFix if needed. The window can stay open across Codex sessions.
| Task | Tools and behavior |
|---|---|
| Inspect or switch scenes | get_state, open_scene, save_scene. State includes the frame, playback, dirty status, active node, hierarchy, node positions, lights, materials, and camera cuts. Save before switching away from an unsaved scene through MCP. |
| Control playback | set_frame takes an absolute scene frame and pauses playback. set_playing plays or pauses. |
| Select and shade | select_mesh takes an exact node name or null to clear selection. assign_shader takes a shader path or null for Phong. A shared material changes for every mesh that uses it. |
| Add or remove geometry | add_rectangle makes a UV-mapped panel facing the current camera orientation. add_mesh imports a named mesh with its textures and first-frame world pose. remove_mesh removes a named node and preserves surviving children's world poses across the timeline. |
| Edit materials | create_material, duplicate_material, assign_material, set_material_shader, set_material_property, key_material_property, and remove_material_key. |
| Set up lights and shots | add_light creates a light. add_camera captures the current free viewport, and set_camera_cut assigns or removes a cut by frame. |
| Import and time a character | add_character imports a rigged FBX or Blender project. set_character_clip chooses, places, trims, and loops a take. |
| Rotate a node | rotate_node applies an axis and angle in parent space to every stored pose. The desktop rotation command uses local axes. |
| Navigate the preview | focus_view, orbit_view, set_view, reset_view. These controls affect the preview independently of the rendered camera. |
| Export video | render_video runs FFmpeg against the saved scene. Longer renders may need a larger MCP tool timeout. |
Try asking Codex to attach to the chair example, seek to frame 40, and rotate the Shoulder node 25 degrees around Z. Then inspect the result in the live viewport. Say ?save the scene? when you want to write the changes to disk.
Build and troubleshoot
- Build from source. Install CMake, Ninja, Clang, SDL 3.2 or later, and OpenGL ES 3 development headers and libraries. On Windows use an x64 Visual Studio Developer Command Prompt with the C++ tools and Windows SDK installed. On Linux use the SDL development package or a source checkout. Run
cmake --preset clangandcmake --build --preset clang. SetTOYFIX_SDL_SOURCEto use an SDL source checkout orCMAKE_PREFIX_PATHto locate an installed SDL. - Windows linker reports access denied. Close the running ToyFix window before rebuilding the main executable.
- A mesh has the wrong texture or shader. Check that the scene's texture files and shader sidecar moved with it and that the shader's relative input paths still resolve. Use the Escape example to check multipass support.
- Export looks different from the preview. Save shader assignments and transforms before rendering. Check the camera cuts on the main timeline and confirm they are saved.
- Codex controls the wrong window. List windows, attach by ID, and inspect
get_statebefore editing. - F1 cannot find this guide. Keep
docs/index.htmlnext to the executable in itsdocs/subdirectory. The build copies the guide there.