POV-Ray : Newsgroups : povray.newusers : Incrementing variables in #for loop : Re: Incrementing variables in #for loop Server Time
19 Apr 2024 22:25:10 EDT (-0400)
  Re: Incrementing variables in #for loop  
From: jr
Date: 27 Mar 2020 11:20:01
Message: <web.5e7e18e524003e8451952ca0@news.povray.org>
hi,

"Bald Eagle" <cre### [at] netscapenet> wrote:
> ...
> #local Z = Z - dz; ought to work because we're still IN the inc file, and IN the
> loop - and THAT works in the standalone scene (where I'd think the same #local
> issue would apply).   Otherwise I'd have to do some wacky #local Z = global(Z) -
> dz; which obviously has it's own failure, and how would you do a #while?


so, I copied the "virus" into an include, and changed all '#declare's to
'#local's, except for the actual 'union {}'.  works fine.  (as .. strange as the
problem I had (some months ago) with macro parameter and '#local' use)


regards, jr.


Post a reply to this message

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