Instance collection by attribute

   919   2   2
User Avatar
Member
949 posts
Joined: 4月 2008
Offline
How can I create a collection from instances using VEXpression and filter by attributes like I would to in vex:

Colleciton1:
@variant==1

Collection2:
@variant==2

Collection3:
@variant==3

Or even

Collection1:
@P.y>0.5

@Collection2:
@P.y<0

Collection3:
@P.z>0

I could not find a proper way to access the complete array of instances trying to using a logic like this.

Any tips?

Thanks.
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
44 posts
Joined: 9月 2018
Offline
From the Documentation It seems like you need to put the vex code between {} but I can't get it to either way.
User Avatar
Member
949 posts
Joined: 4月 2008
Offline
I still find vex under LOPs a little confusing maybe we can get a improved documentation on H20.
https://vimeo.com/user2163076 [vimeo.com]
  • Quick Links