POV-Ray : Newsgroups : povray.general : Macro Initialization? : Macro Initialization? Server Time
10 Aug 2024 07:16:24 EDT (-0400)
  Macro Initialization?  
From: Bill DeWitt
Date: 10 Feb 2000 08:20:30
Message: <38a2bb1e@news.povray.org>
I want to use macros in a way that they probably can't be used. I only ask
because every time I don't, it turns out that what I want to do is quite
easy and everyone but me has been doing it all along...

I want to call the macro with only those values that are relevant to it's
present use. For instance...

gadget(knobs)
gadget(knobs,lights,dials)
gadget(dials,dial_light,dial_needle,dial_range)

    ... where everything not specified is assumed. This is because I want to
make some macros with a couple dozen possible fields and I don't want to
have to list every one of them every time.

    TIA


Post a reply to this message

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