POV-Ray : Newsgroups : povray.general : How to define name of INC-file by command line setting : Re: How to define name of INC-file by command line setting Server Time
12 Aug 2024 09:27:25 EDT (-0400)
  Re: How to define name of INC-file by command line setting  
From: Nieminen Mika
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.