POV-Ray : Newsgroups : povray.general : Write macro-generated objects to file? : Re: Write macro-generated objects to file? Server Time
4 Aug 2024 04:18:44 EDT (-0400)
  Re: Write macro-generated objects to file?  
From: Christoph Hormann
Date: 22 Jul 2003 13:13:59
Message: <3F1D70D6.36FCB076@gmx.de>
Torsten Crass wrote:
> 
> Uhm, well... yes and no. Of course it is possible to assemble all
> keywords and parameter values which define an object into a file - if
> you can retrieve them one by one. But what about a union that comes out
> of a macro, and whose sub-objects have been created and randomly
> transformed by further sub-macros, and so forth?

Just add writing code in your macros wherever an object is created.

> Something like a to_string(OBJECT) function would be really handy! But
> there isn't one, is there?

There won't be - objects are not always stored internally as they are
written in script.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 17 Jun. 2003 _____./\/^>_*_<^\/\.______


Post a reply to this message

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