How to use the new component variant number mode?

   1528   5   0
User Avatar
Member
138 posts
Joined: Feb. 2017
Offline
How to use the new component variant number mode(19.5.403 Build)?I can' t figure out how to use one component geometry to get many variants?Any ideas?
User Avatar
Member
138 posts
Joined: Feb. 2017
Offline
Anyone?I can't get useful info on the help.
User Avatar
Staff
43 posts
Joined: March 2022
Offline
When the Component Geometry Variants node is in Number mode, it creates a context option @GEOVARIANTINDEX, which can be used in expressions in a variety of ways. In the attached example, I'm using it to drive which of my four boxes is not hidden by a Prune LOP.

Attachments:
component-variants-number-mode.hip (185.2 KB)

User Avatar
Member
138 posts
Joined: Feb. 2017
Offline
BryanRay
When the Component Geometry Variants node is in Number mode, it creates a context option @GEOVARIANTINDEX, which can be used in expressions in a variety of ways. In the attached example, I'm using it to drive which of my four boxes is not hidden by a Prune LOP.

Thanks,so this index thing can’t work inside component geometry?That’s limited
User Avatar
Staff
43 posts
Joined: March 2022
Offline
There are likely thousands of ways the context option can be applied. Just because I don't mention one specific application doesn't mean that it's impossible. Here's another example, this time with @GEOMETRYVARIANTINDEX controlling which rock is being imported to the Component Geometry node from the /obj network.

Attachments:
component-variants-number-mode_v02.hip (267.7 KB)

User Avatar
Member
138 posts
Joined: Feb. 2017
Offline
Thanks!I got it.
  • Quick Links