POV-Ray : Newsgroups : povray.newusers : passing file names in macros Server Time
28 Nov 2024 11:50:34 EST (-0500)
  passing file names in macros (Message 1 to 3 of 3)  
From: Mick Hazelgrove
Subject: passing file names in macros
Date: 10 Jan 2001 18:11:17
Message: <3a5cec15@news.povray.org>
Is it possible to pass the name of an image_map as a macro parameter? if so
how?
I've spent hours on this and just can't see how to do it. Strings were never
my strongest point.

Mick


Post a reply to this message

From: Chris Huff
Subject: Re: passing file names in macros
Date: 10 Jan 2001 18:28:50
Message: <chrishuff-D298C0.18303110012001@news.povray.org>
In article <3a5cec15@news.povray.org>, "Mick Hazelgrove" 
<mic### [at] mhazelgrovefsnetcouk> wrote:

> Is it possible to pass the name of an image_map as a macro parameter? 
> if so how? I've spent hours on this and just can't see how to do it. 
> Strings were never my strongest point.

#macro Macro(FileName)
    image_map {xxx FileName ...}
    ...
#end

Macro("MyFile.xxx")

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

From: Mick Hazelgrove
Subject: Re: passing file names in macros
Date: 11 Jan 2001 02:37:47
Message: <3a5d62cb@news.povray.org>
That simple eh! no wonder I couldn't get it to work!

Mick

"Chris Huff" <chr### [at] maccom> wrote in message
news:chrishuff-D298C0.18303110012001@news.povray.org...
> In article <3a5cec15@news.povray.org>, "Mick Hazelgrove"
> <mic### [at] mhazelgrovefsnetcouk> wrote:
>
> > Is it possible to pass the name of an image_map as a macro parameter?
> > if so how? I've spent hours on this and just can't see how to do it.
> > Strings were never my strongest point.
>
> #macro Macro(FileName)
>     image_map {xxx FileName ...}
>     ...
> #end
>
> Macro("MyFile.xxx")
>
> --
> Christopher James Huff
> Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
> TAG: chr### [at] tagpovrayorg, http://tag.povray.org/
>
> <><


Post a reply to this message

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