POV-Ray : Newsgroups : povray.general : Question About Macros Server Time
11 Aug 2024 05:19:06 EDT (-0400)
  Question About Macros (Message 21 to 21 of 21)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Bill the Galactic Hero
Subject: Re: New Question About Macros
Date: 15 Oct 1999 20:29:40
Message: <3807c6f4@news.povray.org>
Cool!
    Thanks! I got the typo correction too. Man! All you have to do around
here is ask the right question!

Peter Popov <pet### [at] usanet> wrote in message
news:V6sHOJmtyVsgp96vIByaBnfkd1tO@4ax.com...
> Try this:
>
> file://---------------
>
> #macro parse (string)
>   #fopen file "parsetmp.inc" write
>   #write (file, result)
>   #fclose file
>   #include "parsetmp.inc"
> #end
>
> #include "colors.inc"
> #include "stones.inc"
>
> sphere
> {
>   0, 1
>   texture { parse (concat("T_Stone",str(32*rand(seed(42)),0,0))) }
> }
>


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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