POV-Ray : Newsgroups : povray.unix : Global INI-File Server Time
26 Dec 2024 01:47:35 EST (-0500)
  Global INI-File (Message 1 to 10 of 10)  
From: Florian Brucker
Subject: Global INI-File
Date: 4 Dec 2003 06:36:44
Message: <3fcf1c4c$1@news.povray.org>
I recently switched from Windows to Linux, and now I finally found time 
to set up POV. Everything is fine, but I don't find a "global INI-file" 
like the Windows-version has (IMHO it is <POVDIR>/renderer/povray.ini). 
This file is parsed before every render, so it's a good place to store 
global parameters, line output format, global include paths, etc. Does 
the Un*x/Linux version also have such a nice file?

Thanks for your help
Florian


Post a reply to this message

From: ABX
Subject: Re: Global INI-File
Date: 4 Dec 2003 06:45:40
Message: <3d7usvoirl3kevv5amlds3e7ega9haoqv1@4ax.com>
On Thu, 04 Dec 2003 12:37:32 -0500, Florian Brucker <tor### [at] torfboldcom> wrote:
> I recently switched from Windows to Linux, and now I finally found time 
> to set up POV. Everything is fine, but I don't find a "global INI-file" 
> like the Windows-version has (IMHO it is <POVDIR>/renderer/povray.ini). 
> This file is parsed before every render, so it's a good place to store 
> global parameters, line output format, global include paths, etc. Does 
> the Un*x/Linux version also have such a nice file?

I don't have much experience with Unix version but I suppose the answer is in
first paragraph of 1.5.2 chapter in your manual.

ABX


Post a reply to this message

From: Warp
Subject: Re: Global INI-File
Date: 4 Dec 2003 06:47:38
Message: <3fcf1eda@news.povray.org>
~/.povrayrc

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Nicolas Calimet
Subject: Re: Global INI-File
Date: 4 Dec 2003 09:13:18
Message: <3FCF40FD.6050101@free.fr>
> Does the Un*x/Linux version also have such a nice file?

	There are actually two INI files in the UNIX/Linux version
of povray: a system-wide file (usually /usr/local/etc/povray.ini)
and an user file called .povrayrc in your home directory (note: it
is usually "hidden" due to the first dot in its name).  The second
file does not exist by default, and you should create it by copying
the first one.  If you use a non-root account on your machine (which
is recommanded anyway), you should not touch the system-wide INI file,
but edit your ~/.povrayrc instead.

	- NC


Post a reply to this message

From: Warp
Subject: Re: Global INI-File
Date: 4 Dec 2003 15:16:23
Message: <3fcf9617@news.povray.org>
Nicolas Calimet <pov### [at] freefr> wrote:
> (note: it is usually "hidden" due to the first dot in its name)

  It's debatable whether a file can be called "hidden" simply because
ls doesn't list it by default.
  I'm not aware of any other program which would not "see" it as any
other file. Even "echo *" lists all files.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Florian Brucker
Subject: Re: Global INI-File
Date: 4 Dec 2003 15:25:38
Message: <3fcf9842$1@news.povray.org>
> I don't have much experience with Unix version but I suppose the answer is in
> first paragraph of 1.5.2 chapter in your manual.
You're right. I did check the other sections of the manual (those about 
INI-options), but I didn't even know there was a platform specific 
section...

Thanks for the help!
Florian


Post a reply to this message

From: Owen Jacobson
Subject: Re: Global INI-File
Date: 4 Dec 2003 16:18:05
Message: <pan.2003.12.04.21.18.05.168351@lionsanctuary.net>
On Thu, 04 Dec 2003 15:16:23 -0500, Warp wrote:

>   I'm not aware of any other program which would not "see" it as any
> other file. Even "echo *" lists all files.

Nautilus' default configuration (in fact, most of GNOME's default
configuration; I can't speak for KDE) is to hide .files and .directories.


Post a reply to this message

From: Christopher James Huff
Subject: Re: Global INI-File
Date: 4 Dec 2003 19:59:12
Message: <cjameshuff-27D72F.19584304122003@netplex.aussie.org>
In article <3fcf9617@news.povray.org>, Warp <war### [at] tagpovrayorg> 
wrote:

> Nicolas Calimet <pov### [at] freefr> wrote:
> > (note: it is usually "hidden" due to the first dot in its name)
> 
>   It's debatable whether a file can be called "hidden" simply because
> ls doesn't list it by default.
>   I'm not aware of any other program which would not "see" it as any
> other file. Even "echo *" lists all files.

It *is* a convention that files beginning with "." are considered 
invisible. "echo *" doesn't list all the files, it echos a string of all 
files matching "*" to standard output...dot files match that expression, 
so they are included.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Warp
Subject: Re: Global INI-File
Date: 5 Dec 2003 09:04:57
Message: <3fd09089@news.povray.org>
Christopher James Huff <cja### [at] earthlinknet> wrote:
> "echo *" doesn't list all the files, it echos a string of all 
> files matching "*" to standard output

  The difference being...?-)

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Christopher James Huff
Subject: Re: Global INI-File
Date: 6 Dec 2003 11:23:33
Message: <cjameshuff-30C09B.11231106122003@netplex.aussie.org>
In article <3fd09089@news.povray.org>, Warp <war### [at] tagpovrayorg> 
wrote:

> Christopher James Huff <cja### [at] earthlinknet> wrote:
> > "echo *" doesn't list all the files, it echos a string of all 
> > files matching "*" to standard output
> 
>   The difference being...?-)

Visibility has nothing to do with matching regular expressions...unless 
you set up the expression to depend on a leading dot. (though I do think 
this method is stupid...a meta-data flag would be far more appropriate)

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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