cancel
Showing results for 
Search instead for 
Did you mean: 

SOLVED: Javascript - iterating over aspects

fx3000se
Champ in-the-making
Champ in-the-making
I would like to iterate over the aspects of a space:

for each (aspect in space.aspects)
{

}
For whatever reason this throws an exception.
Unfortunately the error text is not really helpful
Failed to execute script 'workspace://SpacesStore/956ba79e-5cc5-4ee7-a389-99a8db00e8aa': null
What am I missing?
2 REPLIES 2

fx3000se
Champ in-the-making
Champ in-the-making
space.aspects
causes already an exception. Is the "aspects" member not accessible?

fx3000se
Champ in-the-making
Champ in-the-making
SOLUTION:
as of Alf3 the member is named "aspectsSet", not "aspects"