Style Cookbook: Mix Your Own Art Style from Stackable Look Blocks
README.md
LookbookClock
The single clock the Lookbook scene runs on. Every LookbookAnimator reads LookbookClock.time() each frame, so one lookbook time T always gives the same frame.
LookbookClock.time(): T in seconds. While a run holds the clock it is the value given toset; otherwise it is wall time looping overLookbookPath.LENGTH, so the scene plays by itself in edit and in play.LookbookClock.set(T): hold the clock at T. Animators draw that moment from their next tick.LookbookClock.apply(): wait two frames so every animator has posed itself at the current time, and return how many animators there are. Call it where code can wait, aftersetand before a capture. The animators always write from their own ticks, never from the caller, so holding a pose is never recorded as an edit to the scene.LookbookClock.running()/LookbookClock.release(): whether a run holds the clock / loop on wall time again.
State lives in modules.state(), so a hot reload of this module keeps a held clock held. The clock is local to each machine: a run on one machine does not hold another machine's clock.
Known limits
- Two engines on one account join as one player, so a two-player check needs two accounts or two machines (#14448).
- A world boot can wait about 30 s on a network handshake before any content starts (#24669).
- The web build was not checked from here (#20946).
The package README's Known limits lists the rest.