Foreach - Get object of previous iteration

   5544   3   1
User Avatar
Member
4 posts
Joined: March 2017
Offline
Each iteration I create a new object and I need to use boolean operation on all.
I think to use bool Op on each iteration with previous object.
But I don't know how to get previous object inside foreach. How do this?
img1 [ibb.co]
img2 [ibb.co]
User Avatar
Member
9727 posts
Joined: July 2007
Offline
just copy your block begin and switch it to Fetch Feedback to get previous geo
(even though new Boolean SOP should handle your case already without the need of foreach, but depends what operations you want to do each iteration as well)
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
4 posts
Joined: March 2017
Offline
tamte
just copy your block begin and switch it to Fetch Feedback to get previous geo
(even though new Boolean SOP should handle your case already without the need of foreach, but depends what operations you want to do each iteration as well)

Thanks for reply, Tamte!
I tried to copy block begin and switch it to Fetch Feedback, but it give me first obj(wall).
Sorry that not sayed earlier: In general, I did everything through Foreach Subnetwork. I tried trough other cycles but it not works for me. I was linking parameters of nodes with my list out in parameter interface and used stamp(“..”,“FORVALUE”,0).
In general you right! I do not need boolean every iteration because in some cases it need twice or thrice(etc.) on one obj.
Edited by Sails - May 4, 2017 12:09:41
User Avatar
Member
4 posts
Joined: March 2017
Offline
Sails
tamte
just copy your block begin and switch it to Fetch Feedback to get previous geo
(even though new Boolean SOP should handle your case already without the need of foreach, but depends what operations you want to do each iteration as well)

Thanks for reply, Tamte!
I tried to copy block begin and switch it to Fetch Feedback, but it give me first obj(wall).
I done another test, and it works fine, return previous obj. The question is closed.
  • Quick Links