Jump to content

forLoop in Material Vops

Recommended Posts

what do you expect to get? like this the loop doesn't make much sense. 

first, your "length" needs to be some non-zero constant integer value. secondly, "ïndex_in" typically gets no input as it acts as an iteration counter. then you generally want to add (or multiply, divide, whatever...) iterations results (var1 in your case) before exiting the loop to get any meaningful result. then you have to introduce some "change" at each iteration, which, currently, you haven't. you are just adding a constant number to your multiplier which will be the same at each iteration.

loops are a bit tricky to grasp at first but when you do it's actually quite simple.

Edited by davpe

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now