POV-Ray : Newsgroups : povray.advanced-users : passing variable to macro for use in #for statement : passing variable to macro for use in #for statement Server Time
26 Apr 2024 12:38:28 EDT (-0400)
  passing variable to macro for use in #for statement  
From: Bald Eagle
Date: 19 Sep 2018 12:00:01
Message: <web.5ba2723e83bd6a1ec437ac910@news.povray.org>
Is it possible to start a loop in a macro using a variable name passed into the
macro?

I think not, but maybe it's one of those #write #read workaround things.

Like so:
#macro Loop (_Var, _Begin, _End, _Step)
 #for (_Var, _Begin, _End, _Step)
 ....
 #end
#end


Along the same lines, is it possible to assign an image_map file type to a
variable
like png, jpeg, etc. ?


Post a reply to this message

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