Hello,
Is there any way to access the information about the current iteration number in a node (any node?) that is located between Block Begin and Block End? I need to change the parameters of nodes depending on the current iteration step.
Copernicus Invoke Block node question.
410 2 2- Quantico
- Member
- 36 posts
- Joined: Nov. 2018
- Offline
COPstance - plugin for Houdini
https://copsubstance.com [copsubstance.com]
Follow COPstance on Twitter: https://x.com/copsubstance [x.com]
https://copsubstance.com [copsubstance.com]
Follow COPstance on Twitter: https://x.com/copsubstance [x.com]
- nvki
- Member
- 17 posts
- Joined: Feb. 2018
- Offline
hey, I made a similar post yesterday [www.sidefx.com]. To keep track on the iteration, you could keep incrementing a constant value in a mono channel like in the slapcomp block (depth).
But I'm as well still looking for a way to either read that out in a parameter to eg. drive a switch sop in there. Could even be something hacky (idk...like sample pixel 0 from the buffer w. python), or ideally make use of layer attributes for that. Haven't found a way to get a layerattribute read out in a parameter (or write back to it) either, unfortunately.
But I'm as well still looking for a way to either read that out in a parameter to eg. drive a switch sop in there. Could even be something hacky (idk...like sample pixel 0 from the buffer w. python), or ideally make use of layer attributes for that. Haven't found a way to get a layerattribute read out in a parameter (or write back to it) either, unfortunately.
Edited by nvki - Oct. 15, 2024 13:50:06
- Quantico
- Member
- 36 posts
- Joined: Nov. 2018
- Offline
nvki
hey, I made a similar post yesterday [www.sidefx.com]. To keep track on the iteration, you could keep incrementing a constant value in a mono channel like in the slapcomp block (depth).Image Not Found
But I'm as well still looking for a way to either read that out in a parameter to eg. drive a switch sop in there. Could even be something hacky (idk...like sample pixel 0 from the buffer w. python), or ideally make use of layer attributes for that. Haven't found a way to get a layerattribute read out in a parameter (or write back to it) either, unfortunately.
Thank you for your reply.
I tried to find some solution, but I didn't.
I decided to solve my problem from the other side and move everything to OpenCL node (in my situation, this is possible). It allows you to set the number of iterations, and the current iteration step is available through the @Iteration variable.
Edited by Quantico - Oct. 16, 2024 06:43:41
COPstance - plugin for Houdini
https://copsubstance.com [copsubstance.com]
Follow COPstance on Twitter: https://x.com/copsubstance [x.com]
https://copsubstance.com [copsubstance.com]
Follow COPstance on Twitter: https://x.com/copsubstance [x.com]
-
- Quick Links