symek Posted July 26, 2007 Share Posted July 26, 2007 I faced a stupid problem: how can I override in-place variable in VOPS? i.e result += var In vex it's perfectly doable of course... I have a forloop and can't do my job without +=... thanks, sy. Of course Inline VOP is an answer but let's leave it aside for now. Quote Link to comment Share on other sites More sharing options...
HyFrmn Posted July 26, 2007 Share Posted July 26, 2007 Generally speaking I'm not sure how to do that other than using an Add Vop. However in the case of a For Loop (or Illuminance Loop), Create a constant VOP outside of the for loop and set an initial value. Then plug the constant into the for loop. Inside the for loop connect '_constant' to an Add VOP, and connect the output of the Add VOP to '_constant' in suboutput1. This will add a new output for the For Loop. I hope this helps. I've attached an example file. ~MP for_loop_example.hip Quote Link to comment Share on other sites More sharing options...
symek Posted July 26, 2007 Author Share Posted July 26, 2007 (edited) that's interesting because I was trying to do the same setup and expected similar result but it didn't work. Let me look closer at your example. thanks! sy. EDIT: Well, how to say it...? My setup worked the same as your! Just in nerves I set too low value of some parameter to see its work. As your example do the same thing I've checked all again I found the trouble maker, 0.001 - where should be at least 1.0. thanks for you help! cheers, sy. Edited July 26, 2007 by SYmek 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.