|
![](/i/fill.gif) |
Hey Torsten!
What is the problem with using File-Output-Macros only?
<code>
#include "colors.inc"
camera {
location 5
look_at 0
}
light_source { 100 White }
#macro Thingy(X1,X2,Filename,AutoInclude)
#fopen MyFile Filename write
#write(MyFile, "sphere { 0,1 scale ",X1," translate ",X2," }")
#fclose MyFile
#if (AutoInclude) #include Filename #end
#end
object {
Thingy(<1,0.2,3>,2,"thingy.inc",on)
pigment { Green }
}
</code>
The only problem is that you'll have the overhead of writing to disk /
parsing include-files every render, but that should not be the problem.
HTH,
Florian
Post a reply to this message
|
![](/i/fill.gif) |