POV-Ray : Newsgroups : povray.general : How to pass a string from the command line - help? : Re: How to pass a string from the command line - help? Server Time
30 Jul 2024 18:17:24 EDT (-0400)
  Re: How to pass a string from the command line - help?  
From: Chris B
Date: 2 Oct 2008 08:24:14
Message: <48e4bd6e$1@news.povray.org>
"Thorsten Froehlich" <tho### [at] trfde> wrote in message 
news:48e4a6d7$1@news.povray.org...
> Chris B wrote:
>>
>> "Mathuin" <mat### [at] gmailcom> 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

Ah yes. I must have been asleep in the POV101 class when that was covered 
:-)

Chris B.


Post a reply to this message

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