Clear blocks

16 views
Skip to first unread message

Outpost 31

unread,
Aug 31, 2017, 11:40:46 AM8/31/17
to CoSpaces Scripting
Is there a way to  create a button that will clear the cubes off of my screen?

Daniel Pers

unread,
Aug 31, 2017, 3:37:58 PM8/31/17
to CoSpaces Scripting
Hi,
In this case I would put the objects created in a list.
To remove them, I delete each object from the list with .deleteFromScene ()
See scenes 5-7 of this example: https://cospac.es/q3GU
To see the code:
Username: lp2i_guest
Password: lp2i2017

Daniel Pers

Outpost 31

unread,
Aug 31, 2017, 7:20:35 PM8/31/17
to CoSpaces Scripting
Thanks Daniel, worked like a charm.
Reply all
Reply to author
Forward
0 new messages