POV-Ray : Newsgroups : povray.general : using a charact as #macro paramater? : Re: using a charact as #macro paramater? Server Time
7 Aug 2024 15:14:51 EDT (-0400)
  Re: using a charact as #macro paramater?  
From: Ron Parker
Date: 27 Aug 2001 11:31:15
Message: <slrn9okpu5.m0.ron.parker@fwi.com>
On 27 Aug 2001 11:19:42 -0400, Steve wrote:
>
>       #switch (XFile <----ERROR
>
>/home/sjlen/pov/blchess.pov:249: error: numeric expression expected but string
>identifier found instead.

The problem isn't the macro, it's the switch.  Switches don't work with
strings.  You can either use a chain of #if...#else #if...#else statements,
or you can switch to using numbers instead of letters.

-- 
plane{-z,-3normal{crackle scale.2#local a=5;#while(a)warp{repeat x flip x}rotate
z*60#local a=a-1;#end translate-9*x}pigment{rgb 1}}light_source{-9red 1rotate 60
*z}light_source{-9rgb y rotate-z*60}light_source{9-z*18rgb z}text{ttf"arial.ttf"
"RP".01,0translate-<.6,.4,.02>pigment{bozo}}light_source{-z*3rgb-.2}//Ron Parker


Post a reply to this message

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