Skip to content
Docs
Open Promoeyes

repeat

scenesset 1046× in templates and rigs

Clones its children `count` times; each clone fills its `${name}` placeholders from the `vary` values drawn for it.

repeat#hall-columns(count=14 seed=7)

Attributes

countnumber1046×
seednumber1040×
matchtexte.g. rkbk140×

Where it goes

Examples

repeat#hall-columnsin animations-transitions/in-scene-ui-assembleOpen and play →
repeat#hall-columns(count=14 seed=7)
  vary#x(kind=expr value="i < 7 ? -2100 : 2100")
  vary#z(kind=expr value="-1800 - 900 * (i % 7)")
  g
    primitive(position="${x} -190 ${z}")
      geometry(type=rounded-box width=290 height=100 depth=290 radius=8 segments=2)
      material(ref=m-obsidian)
    primitive(position="${x} 2010 ${z}")
      geometry(type=cylinder radius=90 height=4300 radial_segments=48)
      material(ref=m-column)
    primitive(position="${x} 4215 ${z}")
      geometry(type=rounded-box width=310 height=110 depth=310 radius=8 segments=2)
      material(ref=m-obsidian)
repeat#hall-slitsin animations-transitions/in-scene-ui-assembleOpen and play →
repeat#hall-slits(count=14 seed=8)
  vary#x(kind=expr value="i < 7 ? -2008 : 2008")
  vary#z(kind=expr value="-1800 - 900 * (i % 7)")
  vary#m(kind=expr value="i % 7 == 3 ? 'm-neon-cyan' : 'm-neon-amber'")
  primitive(position="${x} 1900 ${z}")
    geometry(type=box width=28 height=3600 depth=24)
    material(ref=${m} emissive-intensity=1.1)
repeat#lapin camera/camera-dof-device-latticeOpen and play →
repeat#lap(count=9 seed=11)
  vary#iy(kind=expr value="i % 3")
  vary#iz(kind=expr value="floor(i / 3)")
  vary#ix(kind=expr value="(8 - iy - iz) % 4")
  vary#x(kind=expr value="560 * (ix - 1.5)")
  vary#y(kind=expr value="440 * (iy - 1)")
  vary#z(kind=expr value="-720 * iz")
  laptop#lap(body=graphite body-color=#6e717a body-scope=all body-roughness=0.7 body-envmap-intensity=0.8 position="${x} ${y} ${z}")
    ui3d#lap-ui(overlay=screen lift=0.5 render_order=1 width=346 height=223)
      template(ref=scr-lp-studio)

Used in

Templates that write repeat; each opens at its first use.