POV-Ray : Newsgroups : povray.general : How to define name of INC-file by command line setting Server Time
4 Nov 2024 13:03:19 EST (-0500)
  How to define name of INC-file by command line setting (Message 1 to 4 of 4)  
From: Dieter Gaffrey
Subject: How to define name of INC-file by command line setting
Date: 25 Feb 1999 05:26:34
Message: <36D52555.541949AA@ufobi6.uni-forst.gwdg.de>
Hello,

how is it possible to define in a POV-file the INC-file name
in  #include "name.inc"  by setting the name in
the command line?

Thank you for your help!

Dieter


--
**************************************************
University of Goettingen, Faculty of Forest Sciences and Forest Ecology
Institute of Forest Biometry and Informatics
Dr. Dieter Gaffrey
Buesgenweg 4
37077 Goettingen
Germany

Phone: +49 (0)551 393460
Fax:     +49 (0)551 393465
http://www.uni-forst.gwdg.de/forst/fbi/homepa.html


Post a reply to this message

From: Nieminen Mika
Subject: Re: How to define name of INC-file by command line setting
Date: 25 Feb 1999 07:06:04
Message: <36d53cac.0@news.povray.org>
Dieter Gaffrey <dga### [at] ufobi6uni-forstgwdgde> wrote:
: how is it possible to define in a POV-file the INC-file name
: in  #include "name.inc"  by setting the name in
: the command line?

echo #include "whatever.inc" > name.inc
povray ...

-- 
main(i){char*_="BdsyFBThhHFBThhHFRz]NFTITQF|DJIFHQhhF";while(i=
*_++)for(;i>1;printf("%s",i-70?i&1?"[]":" ":(i=0,"\n")),i/=2);} /*- Warp -*/


Post a reply to this message

From: Dieter Gaffrey
Subject: Re: How to define name of INC-file by command line setting
Date: 26 Feb 1999 03:54:07
Message: <36D6612A.54EA5273@ufobi6.uni-forst.gwdg.de>
Nieminen Mika wrote:

> Dieter Gaffrey <dga### [at] ufobi6uni-forstgwdgde> wrote:
> : how is it possible to define in a POV-file the INC-file name
> : in  #include "name.inc"  by setting the name in
> : the command line?
>
> echo #include "whatever.inc" > name.inc
> povray ...
>
>

Hello Mika,

for me as a beginner, please, a little bit more comprehensive.

I run POV under unix. How can I hand over a file name
"demo.inc" in the command line

povray +Idemo.pov +???(demo.inc) ....

to the include command  #include "..........(demo.inc)"
in demo.pov?

Thank you!

Dieter


> --
> main(i){char*_="BdsyFBThhHFBThhHFRz]NFTITQF|DJIFHQhhF";while(i=
> *_++)for(;i>1;printf("%s",i-70?i&1?"[]":" ":(i=0,"\n")),i/=2);} /*- Warp -*/



--
**************************************************
University of Goettingen, Faculty of Forest Sciences and Forest Ecology
Institute of Forest Biometry and Informatics
Dr. Dieter Gaffrey
Buesgenweg 4
37077 Goettingen
Germany

Phone: +49 (0)551 393460
Fax:     +49 (0)551 393465
http://www.uni-forst.gwdg.de/forst/fbi/homepa.html


Post a reply to this message

From: Nieminen Mika
Subject: Re: How to define name of INC-file by command line setting
Date: 26 Feb 1999 08:16:15
Message: <36d69e9f.0@news.povray.org>
Dieter Gaffrey <dga### [at] ufobi6uni-forstgwdgde> wrote:
: for me as a beginner, please, a little bit more comprehensive.

  AFAIK there's no way to specify an include file from the command line,
but you can achieve similar results this way:

  In your pov file (let's suppose that it's named "demo.pov"), add the
following line at the beginning:

#include "name.inc"

  Now, suppose you want a file named "demo.inc" to be included in the place
of the above line. From UNIX command prompt you can type these commands:

echo '#include "demo.inc"' > name.inc
povray +Idemo.pov

  That's it. Now "demo.pov" will include the file "name.inc" which contains
only one line: #include "demo.inc"
  The result: "demo.inc" gets included.

  Note that some shells require you to remove the file "name.inc" before
you can redirect anything to it (ie. with the > operator).

-- 
main(i){char*_="BdsyFBThhHFBThhHFRz]NFTITQF|DJIFHQhhF";while(i=
*_++)for(;i>1;printf("%s",i-70?i&1?"[]":" ":(i=0,"\n")),i/=2);} /*- Warp -*/


Post a reply to this message

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