kubabuk Posted April 2, 2007 Share Posted April 2, 2007 Sorry for such a lame question, but I can't find anywhere, any example of how for loop in vops works. Could any one give a very simple brief how should I deal with that. I am thinking about moving each time a grid plane by one unit. thanks kuba Quote Link to comment Share on other sites More sharing options...
Mario Marengo Posted April 2, 2007 Share Posted April 2, 2007 Sorry for such a lame question, but I can't find anywhere, any example of how for loop in vops works. Could any one give a very simple brief how should I deal with that. I am thinking about moving each time a grid plane by one unit. Hi Kubabuk, I'm pretty sure you don't need a loop to move points by a certain amount every frame, but here's a simple example of a ForLoopVOP. It's the equivalent of: surface test () { float v = 0; int i; for(i=0;i<10;i++) { v += 1.0/10.0; } Cf = v; } If you render the "Mantra" ROP and set mplay to "inspect", you should see a value very close to 1. (0 + (1/10)*10 = 1). forloop.hip HTH. Quote Link to comment Share on other sites More sharing options...
sibarrick Posted April 2, 2007 Share Posted April 2, 2007 To do it in vops you need to put the incrementing value outside and feed it into the forloop vop. See attached forloop_vop.hip 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.