Jump to content

Overide Variable In Vops


symek

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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! :o 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 by SYmek
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...