POV-Ray : Newsgroups : povray.general : new include files Server Time
23 Dec 2024 22:37:28 EST (-0500)
  new include files (Message 1 to 4 of 4)  
From: StudioArete
Subject: new include files
Date: 8 Oct 2006 10:40:00
Message: <web.45290d2e52472156c569456c0@news.povray.org>
I created some declarations which I would like to use as a part of include
file.
When I created new include, the PovRay does not uses it.  The same
declaration, when added to existing include works just fine.  What
modifications are required to make PovRay to recognize new include files?


Post a reply to this message

From: Charles C
Subject: Re: new include files
Date: 8 Oct 2006 14:20:00
Message: <web.4529403e907685582869ae640@news.povray.org>
Is it giving you a file not found error of some sort when you #include
"file.inc" it? Does the include file have the same name as one in the
include directory?  Is it in some other directory which you haven't added
to your library section of POVRAY.INI?
Charles

"StudioArete" <nomail@nomail> wrote:
> I created some declarations which I would like to use as a part of include
> file.
> When I created new include, the PovRay does not uses it.  The same
> declaration, when added to existing include works just fine.  What
> modifications are required to make PovRay to recognize new include files?


Post a reply to this message

From: Penelope20k
Subject: Re: new include files
Date: 9 Oct 2006 08:11:30
Message: <452a3c72$1@news.povray.org>
like that

include "c:\\folder_1\\folder_2\\my_include.inc" if you have saved your
include in a different folder than /povray/include default folder ..


news:web.4529403e907685582869ae640@news.povray.org...
> Is it giving you a file not found error of some sort when you #include
> "file.inc" it? Does the include file have the same name as one in the
> include directory?  Is it in some other directory which you haven't added
> to your library section of POVRAY.INI?
> Charles
>
> "StudioArete" <nomail@nomail> wrote:
> > I created some declarations which I would like to use as a part of
include
> > file.
> > When I created new include, the PovRay does not uses it.  The same
> > declaration, when added to existing include works just fine.  What
> > modifications are required to make PovRay to recognize new include
files?
>
>
>
>


Post a reply to this message

From: Alain
Subject: Re: new include files
Date: 9 Oct 2006 11:44:35
Message: <452a6e63$1@news.povray.org>
StudioArete nous apporta ses lumieres en ce 08/10/2006 10:37:
> I created some declarations which I would like to use as a part of include
> file.
> When I created new include, the PovRay does not uses it.  The same
> declaration, when added to existing include works just fine.  What
> modifications are required to make PovRay to recognize new include files?
> 
> 
There are 2 main places where you should place your *.inc files.
  - In the same folder as your scene OR
  - with all other includes in the include folder
If you place your's in one of those places, then POV-Ray will automaticaly find 
and use it.

Also, are you using #local or #declare?
Any #local will only exist inside the included file and will be invisible from 
your main scene file.

-- 
Alain
-------------------------------------------------
How do you tell when you're out of invisible ink?


Post a reply to this message

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