|
![](/i/fill.gif) |
Thorsten Froehlich <tho### [at] trf de> wrote:
> Chris B wrote:
> >
> > "Mathuin" <mat### [at] gmail com> wrote in message
> > news:web.48e3fa9f79b5340cd8a103ef0@news.povray.org...
> >> Now what I really want to do is have "content.inc" and
> >> "othercontent.inc" and
> >> "stillothercontent.inc" then modify the template to contain '#include
> >> Content'
> >> and have the specific include file chosen via the command line
> >> something like
> >> this: povray -Itemplate.pov Declare=Content="content.inc" Alas, the
> >> command-line version of Declare appears to be limited to floats.
> >
> > Three approaches immediately spring to mind.
>
> It is a lot easier than that:
>
> Use the Include_Header / +HI command-line option. Documentation at
> http://www.povray.org/documentation/view/3.6.1/220/ .
>
> Thorsten
Wait, I think I get it. Are you suggesting this?
povray +Icontent.pov +HItemplate.inc
instead of what I was saying before? If I want to run another content file and
I have another template that has say a different light source or camera
location, I'd run something like this:
povray +Iothercontent.pov +HIdifferenttemplate.inc
Interesting. I'll have to be very careful with the template files, specifying
exactly what they have to have, but I think it might work.
Post a reply to this message
|
![](/i/fill.gif) |