noc2 Posted September 23 Share Posted September 23 (edited) Hi; I have a bunch of curves that I want to iterate over but in a certain pattern, as in: "0 and 1", "1 and 2", "2 and 1" so on and so so forth. I need to do this with a for-each loop sop. My problem is that the for-each primitive sop does what it's supposed to, it goes through each and every primitive one after the other. If I somehow lend names to each primitive pair, like "0" for the first pair, "1" for the next etc, I can use foreach named prim sop but then, how do I get the pattern of iteration I mentioned above? I'm really stumped at this point, any help will be hugely appreciated. So in essence, what I want to do is; get primitives 0 and 1 and skin them inside the foreach sop using the skin sop then do the same for 1 and 2, then 2 and 3... Cheers; AJ Edited September 23 by noc2 Quote Link to comment Share on other sites More sharing options...
fencer Posted September 23 Share Posted September 23 Hmm Quote Link to comment Share on other sites More sharing options...
noc2 Posted September 23 Author Share Posted September 23 14 minutes ago, fencer said: Hmm Sorry, this is nowhere near what I asked about... Quote Link to comment Share on other sites More sharing options...
fencer Posted September 23 Share Posted September 23 Sorry, my bad. How about this? iteration_over_primitives_v02.hip 1 1 Quote Link to comment Share on other sites More sharing options...
noc2 Posted September 23 Author Share Posted September 23 1 hour ago, fencer said: Sorry, my bad. How about this? iteration_over_primitives_v02.hip 187.06 kB · 1 download That's it! Thank you so much for taking the time btw. My undoing was that I spent too much time trying to understand how I could inject an expression into the skin group field to fit that pattern. Although your method is so plain and straightforward. Great, thank you again... 1 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.