POV-Ray : Newsgroups : povray.advanced-users : Write macro-generated objects to file? : Re: Write macro-generated objects to file? Server Time
29 Jul 2024 00:37:49 EDT (-0400)
  Re: Write macro-generated objects to file?  
From: Torsten Crass
Date: 23 Jul 2003 06:35:11
Message: <3f1e64df$1@news.povray.org>
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

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