POV-Ray : Newsgroups : povray.general : height_field name in a macro : Re: height_field name in a macro Server Time
5 Jul 2024 11:05:05 EDT (-0400)
  Re: height_field name in a macro  
From: clipka
Date: 2 Feb 2015 21:14:28
Message: <54d02f04$1@news.povray.org>
Am 02.02.2015 um 22:56 schrieb Alexis:
> Here is a simplified version of a macro I wrote:
>
> #macro my_macro(picture_name)
>    #local my_hf = height_field {picture_name};
>    ...
> #end
>
> When I call the macro with some picture name :
>    my_macro("the_pict_name")
> I get the following error message :
>
> "Parse Error: Expected 'map file spec', string identifier found instead"

As a workaround until the brand new fix is available in a Mac release, try:

    #local my_hf = height_field { concat(picture_name,"") };

Don't ask why...


Post a reply to this message

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