Node script API issues: artboard:node() returns nil, View Model bindings don't propagate to scrip...

Summary / Description: While building a particle system using Node scripting, I encountered three issues that prevented documented patterns from working as expected. Filing one report covering all three since they appear to be related (script-instanced artboards not behaving as documented).

Rive Version: 0.8.4682 (BETA)

Environment: macOS, Apple Silicon

Steps to Reproduce:

Setup:

  1. Create a Particle artboard with a Rectangle shape (which has a Path child)

  2. Mark Particle as a Component

  3. Bind a Particle View Model with a color Color property to the artboard

  4. In Design mode, data-bind the rectangle's fill color to Particle.color

  5. Create a Node script with input particleTemplate: Input<Artboard<Data.Particle>>

  6. In the script, instance the artboard via Data.Particle.new() + template:instance(vm) + artboard:advance(0)

Then test:

Issue 1 — artboard:node("name") returns nil for visible hierarchy nodes

  • Try artboard:node("Rectangle"), artboard:node("Fill"), artboard:node("Path"), artboard:node("Shape") on the instanced artboard

  • All return nil

  • The Hierarchy panel clearly displays these nodes by these names

Issue 2 — Script-set VM properties don't propagate to bound shape properties

  • Set particleVM:getColor("color").value = Color.rgb(255, 0, 0) before :instance(vm)

  • Call artboard:advance(0) after instancing

  • Print confirms the VM property holds the new color (write + readback both show R=255 G=0 B=0)

  • But the rendered rectangle uses the design-time default color, not the script-set value

  • Manually editing the same VM property in the editor (with Preview Bound Values on) does correctly update the rectangle — confirming the binding works for editor-created instances but not script-created ones

Issue 3 — Multiple Input<Artboard<Data.Particle>> fields render identically

  • Create 5 Particle artboards (Particle_Pink, Particle_Gold, etc.), each with a distinctly-colored rectangle

  • Mark all 5 as Components

  • Add 5 Inputs to a script, each bound to a different artboard via the Inspector dropdown

  • In spawn, call :instance() on a randomly-selected input each iteration

  • Print statements confirm varied template selection across particles (Pink, Gold, Magenta, etc.)

  • All particles render with the same color (the original/first artboard's fill)

Expected behavior:

  • artboard:node() should return the named node from the artboard's hierarchy

  • Setting VM properties on a script-created VM passed to :instance(vm) should drive bound shape properties on the resulting artboard

  • 5 distinct artboards bound to 5 separate Inputs should render distinctly when instanced

Actual behavior: All three patterns failed as described above. Worked around by using a single-color particle and skipping color variety.

Additional notes: Confirmed via Agent consultation that the documented APIs and patterns I was using are correct (artboard:node("Fill") then :asPaint(), View Model binding via Data.X.new(), multiple Inputs of the same type). Issue appears to be in implementation, not documentation.