"Kenneth" <kdw### [at] gmailcom> wrote:
> "Leroy" <whe### [at] gmailcom> wrote:
> >
> > #macro Image(File)
> > #local L=strlen(File);
> > (etc) ...
>
> > How to use:
> >
> > #declare FileStr="Image.tga"
> >
> > height_field{Image(Filestr} ... // ending parenthesis missing?
> >
>
> [Windows 10, running v3.8.0 beta 1]
> I like the idea. But substituting my own .png image_map...
>
> #declare FileStr="test image for hf png.png"
> height_field{Image(Filestr)} // parenthesis added
>
> ...I get a fatal error at the last line: "Cannot pass uninitialized identifier as
> non-optional macro parameter."
Sorry about the typo.I copied the example from working code & delete one space
to much.
I hope your problem is the another typo
height_field{Image(Filestr)} FileStr
Have Fun!
Post a reply to this message
|