|
![](/i/fill.gif) |
Hi Tim,
> #declare Sphere_Pos=<0,0,0>;
> #fopen OutputFile "file_io.inc" write
> #write (OutputFile, "sphere{",Sphere_Pos,",.5 pigment{rgb 1}}\n")
> #fclose OutputFile
>
> This would create file with sphere as content.
> You just have to be a little creative! :-)
_that_ creative I've been already... ;-) I just would like to use the
same (complex) macro to create both .inc files and ready-to-use objects.
Seems, however, not possible due to the lack of some kind of
to_string(OBJECT) function... sigh!
Thanx anyway -
Torsten
Post a reply to this message
|
![](/i/fill.gif) |