Append objects

1 view
Skip to first unread message

EDUCATIA SUPERLATIV

unread,
Jan 19, 2026, 2:35:40 PM (2 days ago) Jan 19
to Glowscript Users
Hi,

Is it possible to append objects?
Using a compound is not OK when I create objects in a cycle
I study this example
but gives errors when I try to use sphere

let Spira1 = []
while (spiraN < 78) {
       Spira1.append(sphere({pos:P1vec, radius:0.2,color:cList[collID+1]}))
....

Best regards,
Ciprian

Michael Burns-Kaurin

unread,
Jan 19, 2026, 5:00:48 PM (2 days ago) Jan 19
to glowscri...@googlegroups.com
What is spiraN?

--

---
You received this message because you are subscribed to the Google Groups "Glowscript Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to glowscript-use...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/glowscript-users/f919e7ee-5a6a-4adf-abb2-35090ff1f998n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages