POV-Ray : Newsgroups : povray.general : How can I iterate a function in POV script? : Re: How can I iterate a function in POV script? Server Time
11 Aug 2024 11:16:28 EDT (-0400)
  Re: How can I iterate a function in POV script?  
From: Chris Huff
Date: 22 Jul 1999 09:32:05
Message: <37971D5A.F19063CA@compuserve.com>
You want the #macro directive and the #while directive

#macro ThisIsAMacro(aParameter, anotherParameter)

blahblah

#end//end of macro


#declare counterA = 0;
#while(counterA < 15)
    ThisIsAMacro(counterA, < 0, 4, 2>)
    #declare counterA = counterA + 1;
#end//end of while loop


Post a reply to this message

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