POV-Ray : Newsgroups : povray.newusers : Calling 'procedures' with variables? : Re: Calling 'procedures' with variables? Server Time
5 Sep 2024 14:21:52 EDT (-0400)
  Re: Calling 'procedures' with variables?  
From: ryan constantine
Date: 29 Aug 2000 22:58:42
Message: <39AC7863.E2C82923@yahoo.com>
some single letters have been taken over by megapov as reserved words. 
try making n a real word like my_n_variable to eliminate the possiblity
of conflict.

J Charter wrote:
> 
> >
> > >#macro PigmentFunc (n)
> >     #declare Pigment = pigment { bla bla n bla bla }
> > #end
> >
> >
> >
> > PigmentFunc (0.5)
> > texture {Pigment}
> >
> 
> I take it you tried:
> 
> n=0.5;
> PigmentFunc(n)


Post a reply to this message

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