POV-Ray : Newsgroups : povray.advanced-users : Write macro-generated objects to file? : Write macro-generated objects to file? Server Time
29 Jul 2024 00:32:39 EDT (-0400)
  Write macro-generated objects to file?  
From: Torsten Crass
Date: 22 Jul 2003 11:49:28
Message: <3f1d5d08@news.povray.org>
Ooops - actually I wanted to post this to the "advanced" group right 
from the begining... I hope you don't mind that I still post it here 
although I accidently sent it to "general" first...

---8<---

Hi there!

When populating a scene with loads of macro-generated objects, I thought 
it would be a nice idea to run those time-consuming macros only once, 
write their "return values" (in this case: unions of triangles) to an 
.inc file and re-use this file when further experimenting with the 
scene. However, I couldn't figure out a way to write those objects to a 
file - the #write directive apparently only accepts strings, numbers and 
vectors.
Does anybody have a clue how one could save macro-generated objects to a 
file - i.e. use PovRay for creating its own .inc files?

Thanx in advance -

     Torsten


Post a reply to this message

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