Jump to content

Foreach loop per primitive but with accumulating ray geo


Recommended Posts

I have a Foreach loop which processes a bunch of primitives, one-by-one. Inside the loop I have I a Ray SOP. For its target geometry (i.e. what I'm projecting on), I want to use the original target geo (coming from outside the Foreach loop) plus all the projected primitives processed so far, i.e. the progressively accumulated results of previous projections. I don't want the loop as a whole to work in "feedback" mode i.e. working on previous iterations. I want the loop to process primitives one by one. I just want the to Ray SOP to accumulate iterations (previous projections). Any advice how to arrange this?

foreach_begin.png

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...