POV-Ray : Newsgroups : povray.newusers : Is there a for operator? : Is there a for operator? Server Time
28 Jul 2024 14:19:06 EDT (-0400)
  Is there a for operator?  
From: Mathuin
Date: 2 Oct 2008 17:40:00
Message: <web.48e53e6c9c501ab1d8a103ef0@news.povray.org>
I have a scene file which has stuff like this:

#macro bigthing(_this, _that, _other)
..... do this big thing
#end // bigthing

#macro blah(_index)
bigthing(ThisArr[_index], ThatArr[_index], OtherArr[_index])
#end // blah

blah(1)
blah(2)
blah(3)
..... and so forth

Is there any way I can condense the multiple blah() calls into something like:

#for _index in 1..10
blah(_index)
#end // for

That would rule.  Thanks!


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.