magneto Posted February 27, 2012 Share Posted February 27, 2012 (edited) I thought I could do this with a switch SOP but I need the connections going the other way around. Basically I have foreach SOP that assigns an integer index to each primitive, and then I want to use this primitive to choose which color sop to use after that based on the index I created, but not sure how to do it. So here is how it looks inside the foreach SOP: Can I make it so that the integer chooses which color SOP comes after? I could use stamping but I want to change the point colors. Thanks Edited February 27, 2012 by magneto Quote Link to comment Share on other sites More sharing options...
nord3d Posted February 27, 2012 Share Posted February 27, 2012 I don't completely understand what you want. But, anyway, all of the Color SOPs must have an input. May be if you include a scene file, it will be easier to help. Quote Link to comment Share on other sites More sharing options...
eetu Posted February 27, 2012 Share Posted February 27, 2012 Yeah, just wire the incoming geometry to each of the Color SOPs, and then decide in the Switch SOP which route will be used. magneto_switch.hip 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted February 27, 2012 Author Share Posted February 27, 2012 (edited) Thanks Eetu, exactly what I wanted. I was somehow stuck in thinking I needed to do it the other way around, now I know I made these images to show nord3d what I needed so I might as well post it to make it more clear: This is how I needed to do it before: whereas I wanted something like this which is a mockup, where the switch node decides which node comes after itself based on the index. Of course Eetu's example does it perfectly. Edited February 27, 2012 by magneto Quote Link to comment Share on other sites More sharing options...
hopbin9 Posted February 27, 2012 Share Posted February 27, 2012 SOP networks cook from the bottom up. You were thinking top down. Which is a common problem, cause that's the way we connect them. I really need to do a tutorial on this. Quote Link to comment Share on other sites More sharing options...
magneto Posted February 27, 2012 Author Share Posted February 27, 2012 Yeah I had this thinking a couple times before with switching branches. It makes sense when you think bottoms up. Looking forward to your tutorials 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.