POV-Ray : Newsgroups : povray.general : Parse Error: No matching } in 'pigment', string identifier found instead : Re: Parse Error: No matching } in 'pigment', string identifier found instea= Server Time
19 Apr 2024 12:39:16 EDT (-0400)
  Re: Parse Error: No matching } in 'pigment', string identifier found instea=  
From: societyofrobots
Date: 2 Feb 2009 02:00:05
Message: <web.498698f97b9bdab4e977d74a0@news.povray.org>
Mike Williams <nos### [at] econymdemoncouk> wrote:
> It looks like you've declared color_sub to be a text string rather than
> a pigment identifier.
>
> E.g. you can't to this is you want to use color_sub as a pigment
> identifier
>
>         #declare color_sub = "rgb <1,0,0>";
>
> but you can do this instead
>
>         #declare color_sub = pigment {rgb <1,0,0>};
>

Ok I ran this below code, but still got the same error:

#declare color_sub = pigment {rgb <1,0,0>};
#macro DIODE_SMD_CHIP_0805(color_sub)
  union{
  object{CAP_SMD_CHIP_GRND(2.0,1.25,1.3,0.5)}
  }
#end


and if I run this:
#macro DIODE_SMD_CHIP_0805(1)
  union{
  object{CAP_SMD_CHIP_GRND(2.0,1.25,1.3,0.5)}
  }
#end

I get this error:
"Parse Error: Expected 'identifier or expression.', float function 'float
constant' found instead

ideas?


Post a reply to this message

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