Object Flows
Every object can now carry its own node graph, alongside the shared Scene flow. Object flows keep behavior with the thing it belongs to — a door knows how to open, a lamp knows how to flicker — and the Scene flow composes them.
Scene flow vs object flows
- The Scene flow is the shared, world-level graph you have always had.
- An object flow is a private graph document owned by one object. All graphs replicate live to every peer and are saved with sessions, autosave and
.tpsceneexports.
The editor's scope follows your selection: select an object and the Flow editor shows that object's flow (the breadcrumb bar at the top says which — tap its crumb to jump to another flow); deselect and you are back in the Scene flow. Flow Code shows whichever graph the editor is showing.
Creating and deleting a flow
Select an object that has no flow yet — the editor shows "
No Object Selector needed
Inside an object flow, effect nodes (Spin, Bounce, Script, module nodes, Sound, physics params, On Click…) target the owner object implicitly — just drop a Spin node in a box's flow and the box spins. Wiring into an Object Selector still works and always wins, so an object's flow may also drive other objects.
One flow, many objects
New in 1.82. One flow can drive a whole set of objects: every coin, every enemy, every lamp in a group.
Tag objects. Select one or more objects and add tags in Inspector ▸ Tags. With several objects selected, a tag shows how many of them carry it (2/5). Tags are saved with the scene, shared with everyone, and each change is one undo step.
Point an Object Selector at a set. The Object Selector card's first field picks what it selects: One object (the default, and what every older scene uses), By tag, By group or By name. The card shows how many objects it finds right now (12 objects, or matches no objects).
- An effect wired into a set selector acts on every object in the set.
- A trigger wired to one (On Click, Hover, Hit, Enter, Grab and the others) fires when any of them does.
- The new Fired Object node (Scene group) says which one: wire a trigger in, and it gives the object the trigger fired for last. The selector's own object output gives the same for a set (or its first object).
- An empty set gets a Matches no objects note on the first wire into it, and the Debugger shows what a set holds and which object fired last.
Give this flow to the selection. Select the object with the flow and the objects that should get it, then the object menu ▸ Physics & effects ▸ Give this flow to the selection. Each one gets its own copy, and inside the copy, references to the first object point at the new owner, so click me, hide me stays click me, hide me. An object that already has a flow asks first. After editing one copy, Update all copies from this one sends it to the rest. Each is one undo step.
Everyone in the session should be on 1.82 or later: an older version ignores tags, so a selector by tag finds nothing on its screen.
Public sockets: Flow Input / Flow Output
An object flow can declare an interface, like a function signature:
- Flow Input — a named, typed value source (number / boolean / vector3 / color). Inside the graph it outputs whatever the Scene feeds it (or its fallback).
- Flow Output — a named sink; whatever you wire into it becomes visible to the Scene. Its gray socket accepts any value type.
Outputs carry values, not effects
Animation/effect nodes (Spin, Pulse, Wobble… — the orange sockets) are not values and cannot wire into a Flow Output. Output the driving value instead: the Time, Slider, Math or Loop node that feeds the effect.
Embedding a flow in the Scene graph
Once a flow declares inputs/outputs, embed it in the Scene flow as a single Object Flow node:
- right-click the object in the viewport → Add flow to Scene graph, or
- add an Object Flow node from the palette (Object Flow group) and pick the object — only objects that have flows are listed.
The embedded node shows the declared sockets: Scene values wired into it feed the flow's Flow Inputs; the flow's Flow Output values come out the other side (with one frame of latency). Renaming or deleting an interface node updates the embedded sockets everywhere and cleanly disconnects stale wires; deleting the flow removes its embedded node.
Practical example
A breathing lamp whose intensity the Scene controls:
- Select the lamp object → Create flow.
- Add a Flow Input named
amount(number) and a Pulse node; wireamount → Pulse.amount. The Pulse drives the lamp itself (no Object Selector needed). - Add a Time node (mode
sin) and a Flow Output namedphase; wire Time → phase. (The Time value is what leaves the flow — the Pulse effect itself stays inside.) - Deselect (back in the Scene flow), right-click the lamp → Add flow to Scene graph.
- Wire a Slider into the embedded node's
amount— the slider now breathes the lamp, andphaseis available to drive anything else in the scene.
Tip
Object flows travel with their object through sessions and undo: deleting an object and undoing brings its flow back intact.