Hi all,
I'm attempting to write a shader and within this I need to loop over some process. However, I cannot find a way with the for_begin & end_for blocks to include some of the nodes inside the loop. If I activate the ‘enclose inputs’ option of the end_for it encloses everything connecteded which is inefficient.
I've attached a scene, and in the vopmaterial you should see what I'm getting at. The yellow nodes should be inside the loop, the red ones should be outside.
Force Certain VOP Nodes to be Inside For Loop
2956 3 1- Anti-Distinctlyminty
- Member
- 271 posts
- Joined: March 2012
- Offline
- bebe
- Member
- 53 posts
- Joined: June 2009
- Offline
- Anti-Distinctlyminty
- Member
- 271 posts
- Joined: March 2012
- Offline
- Anti-Distinctlyminty
- Member
- 271 posts
- Joined: March 2012
- Offline
Ah, I have it now (and it's sort of obvious now I think about it). Values from outside the loop that you want inside you must plug into the for_begin and use their corresponding outputs. Doing this and applying the ‘enclose inputs’ checkbox also placed the grandom inside the loop, which is what I was after as this function produces a random vector every time it is called.
Thanks bebe.
Thanks bebe.
-
- Quick Links