Jump to content

forLoop in Material Vops


CinnamonMetal

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
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...