#Get cubes from groups

9 messages · Page 1 of 1 (latest)

hard dagger
#

I need not just all the cubes, but to watch the groups and get from there

slim wraith
#
Group.all```
#
Cube.all```
hard dagger
#

Yeah, and then I can get cubes from the group? for example my Head group

slim wraith
#

inside the group

haughty raven
#
Group.all[0].children.filter(e => e instanceof Cube)
slim wraith
#

more specifically js Group.all.find(e => e.name === "head").children.filter(e => e instanceof Cube)