Component Material in For-Each Loop?

   1137   0   3
User Avatar
Member
39 posts
Joined: Feb. 2017
Offline
Is it possible to use a For-Each loop to add a dynamic number of component material variants to a Component Builder setup? The workflow for adding geometry variants with a loop, as documented in the Chris Rydalch video (https://youtu.be/EgTqz6y_oAs [youtu.be]), doesn't seem to have an analog for the materials that I can figure out.

This setup, using regular LOP nodes, will create 5 variations of the inputs:diffuseColorattribute:


Trying to replicate it with Component Builder nodes doesn't work out of the box, and in fact the Component Output node doesn't even register a valid input in this arrangement (I suspect because of the For-Each node interrupting the upstream connection to the Component Material):


Seems like there must be some metadata moving through the Component Material node that isn't making it through the loop. Is there another way to set this up, or is it impossible to use the Component nodes to achieve this kind of dynamic variation?

I've attached my demo scene file to play with. Thanks!

Attachments:
pcoip_client_2WYpfSTsO9.png (758.5 KB)
pcoip_client_en1d1KxXQT.png (770.0 KB)
loop_variation1.hip (261.0 KB)

  • Quick Links