POV-Ray : Newsgroups : povray.general : Commandline variables Server Time
29 Nov 2024 09:34:30 EST (-0500)
  Commandline variables (Message 1 to 2 of 2)  
From: Ger
Subject: Commandline variables
Date: 7 Dec 2005 05:37:53
Message: <4396bb81@news.povray.org>
Is it possible to do something like

povray +iscene.pov +LightSetting=1 +W320 +H180
as commandline and then in the code

#if (LightSetting=1)
        code
#end

#if (lightSetting=2)
        more code
#end
?

I have searched the helpfile but couldn't find anything about this.
Btw, I'm using povray 3.6.1 on linux.
-- 
Ger


Post a reply to this message

From: Chris B
Subject: Re: Commandline variables
Date: 7 Dec 2005 06:54:49
Message: <4396cd89$1@news.povray.org>
"Ger" <No.### [at] ThankYou> wrote in message news:4396bb81@news.povray.org...
>
> Is it possible to do something like
>
> povray +iscene.pov +LightSetting=1 +W320 +H180
> as commandline and then in the code
>
> #if (LightSetting=1)
>        code
> #end
>
> #if (lightSetting=2)
>        more code
> #end
> ?
>
> I have searched the helpfile but couldn't find anything about this.
> Btw, I'm using povray 3.6.1 on linux.
> -- 
> Ger

Yes.
You can add
  Declare=LightSetting=1
to either an INI file or to the command line.
See the Declare ini-option in the help.

Regards,
Chris B.


Post a reply to this message

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