AssetBash Docs Sign in
Lunaris USD + path tracing in TouchDesigner

Building a stage

A Lunaris stage is built by a chain of operators inside /TD_Lunaris/LunarisStage, much like a LOP network in Houdini. Each operator writes its changes into its own USD layer.

Adding operators

There are three ways in, and they all make the same wired operators:

  • + Op in the viewport toolbar.
  • Shift+Tab in the Lunaris node graph.
  • TouchDesigner's Tab dialog → Lunaris tab. This also lists Material, POP Import and SOP Import.

The order of the wires, from lunaris_stage to OUT_lunaris, decides which operator wins. See Operators for what each one does.

Older scenes may still have menu operators: green Python COMPs made by earlier versions of + Op. They still work, but they are ordered by their position in the network rather than by wires, and they are always weaker than the wired chain. Sun & Sky is still one of these.

Which change wins

When two operators set the same thing, the stronger one wins. From strongest to weakest:

  1. Your interactive edits (see below).
  2. Compiled operators, in wire order: the further down the chain, the stronger.
  3. Menu operators (Sun & Sky, and any made by older versions), in network order: the lower in the network, the stronger. Arcs (Reference, Payload, Sublayer) are applied before the edit operators.
  4. The USD files you brought in.

To make a change win, move its operator further down.

Anything you add is wired in automatically, right after the chain operator you last selected (or at the end), and the operators after it move over to make room. Deleting an operator from the chain reconnects its neighbours, as in Houdini. To keep an operator out of the chain, give it the tag lunarisNoAutoWire.

Your interactive edits

When you change something in a panel, Lunaris puts the change where it belongs:

  • If an operator made the thing (for example a light from a Light operator), the change goes into that operator's parameters, so the network and the panel always agree.
  • Anything else, such as a light inside a referenced file, or switching an object off in the Scene Graph tree, goes into the edits layer, the strongest layer on the stage.
  • The edits layer is saved inside the .toe.
  • Save Edits Layer on LunarisStage (or Save TD Edits in the Layers tab) also writes it to the file in Edits File, so Houdini can use it.
  • Solo and mute in the Lights tab are kept separate, in the session layer. They're never saved or exported.

Stage settings

On /TD_Lunaris/LunarisStage:

ParameterUse
Load PayloadsOff keeps payloads unloaded, for a fast stage with big files.
Rebuild StageRebuilds the stage from the operators. Use it if the viewport looks out of date.
Edits File / Save Edits LayerWhere and when to write the edits layer to disk.
SelectionThe selected prim paths. Other operators and scripts can read it.

Coming from Houdini

SolarisLunaris
LOP networkThe operator chain in LunarisStage
Scene Graph Tree, Layers, DetailsThe same three panels in Look Dev
SOP CreatePOP Create (POPs) or SOP Import (SOPs)
Material Library + Assign MaterialMaterial Library or Lunaris Material + Assign Material
Karma XPU viewportThe path tracer
USD ROPThe exporter (see Export to Karma)