Atom Posted April 12, 2015 Share Posted April 12, 2015 (edited) Hi All, I just watched Manuel's tutorial on the FOR/EACH sop. This tutorial copies boxes. In the end you end up with two possible outcomes. One result is boxes with materials cycling through 3 possible materials. The other result is each box with a random color applied. What I would like to do is mix these two resulting streams using some form of modulus to determine how many of each stream get mixed in to a final single stream of geometry. Example: The first 4 copies come from the 1st stream, the second 4 copies come from the 2nd stream then back to the first stream and so on... How can I do this? I realize I need some groups and way to select alternately from each group. Are there specific nodes I should be using? In the screen shot I have the current result of each stream, one in each object but I would like a single object for the final result. ap_for_each_example.hipnc Edited March 31, 2016 by Atom Quote Link to comment Share on other sites More sharing options...
pezetko Posted April 12, 2015 Share Posted April 12, 2015 With hexpression (Where "el_size" is size of the chunk before you switch to other stream): floor($MYCLASS/ch("el_size"))%2 Or with attribvop. I added couple of examples to the scene, have a look. ap_for_each_example.hipnc Quote Link to comment Share on other sites More sharing options...
Atom Posted April 13, 2015 Author Share Posted April 13, 2015 That's pretty neat, thanks Petr! I like the way you have broken it out into boxes to show the steps. I had not thought about the deleting part. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.