POV-Ray : Newsgroups : povray.unix : ini file section references Server Time
23 Dec 2024 07:52:08 EST (-0500)
  ini file section references (Message 1 to 6 of 6)  
From: Chris R
Subject: ini file section references
Date: 15 Jun 2023 14:00:00
Message: <web.648b50728d8bb46114589f4d5cc1b6e@news.povray.org>
I normally work in Windows with POV-Ray, but I have access to some big linux
boxes that I'd like to use for my longer renderings.  At the moment I'm trying
to figure out how I can use quickres.ini to set the resolution options, rather
than specifying them individually on the command line, or fixing them within my
scene.ini file.

I updated my copy of quickres.ini to include a section called [default], as well
as a bunch of sections I had added to my windows installation to keep things
consistent.

On the linux box, if I run:

povray $POVHOME/ini/quickres[default] scene.pov

The rendering starts as expected.

povray $POVHOME/ini/quickres[foo] scene.pov

Also works, even though there is no subsection labeled [foo].

povray $POVHOME/ini/quires[160x120, No AA] scene.pov

fails with "Failed to parser command-line option".

I have tried:
'160x120, no AA'
"160x120, no AA"
"160x120,\ no AA"
....

I can't seem to find the magic to allow specifying a section name with embedded
spaces in it.

Do I need to go rename all of the sections in quickres.ini to remove the spaces?


-- Chris R.


Post a reply to this message

From: jr
Subject: Re: ini file section references
Date: 15 Jun 2023 14:15:00
Message: <web.648b542f38ef8a73b49d80446cde94f1@news.povray.org>
hi,

"Chris R" <car### [at] comcastnet> wrote:
> I updated my copy of quickres.ini to include a section called [default],...

disclaimer, I don't use any of the distribution inis.


> On the linux box, if I run:
> ...
> povray $POVHOME/ini/quires[160x120, No AA] scene.pov
>
> fails with "Failed to parser command-line option".
>
> I have tried:
> '160x120, no AA'
> "160x120, no AA"
> "160x120,\ no AA"
> ....

I'd try quote the whole thing.
  $ povray "$POVHOME/ini/quires[160x120, No AA]" scene.pov


the brackets, too, are "special" to the (BASH?) shell.


regards, jr.


Post a reply to this message

From: William F Pokorny
Subject: Re: ini file section references
Date: 15 Jun 2023 15:21:05
Message: <648b64a1$1@news.povray.org>
On 6/15/23 14:10, jr wrote:
> I'd try quote the whole thing.
>    $ povray "$POVHOME/ini/quires[160x120, No AA]" scene.pov
> 
> 
> the brackets, too, are "special" to the (BASH?) shell.

Try what jr suggested first - and if that doesn't work ->

---
I don't often use ini files, but perhaps the issue related to the file 
names with spaces quoting issue with recent versions of POV-Ray?

See, for example, github issue:

https://github.com/POV-Ray/povray/issues/448

and maybe too :

Message: <6107d751$1@news.povray.org>

or

https://news.povray.org/povray.bugreports/message/%3C6107d751%241%40news.povray.org%3E

Bill P.


Post a reply to this message

From: Chris R
Subject: Re: ini file section references
Date: 16 Jun 2023 08:20:00
Message: <web.648c532e38ef8a7364326bc25cc1b6e@news.povray.org>
William F Pokorny <ano### [at] anonymousorg> wrote:
> On 6/15/23 14:10, jr wrote:
> > I'd try quote the whole thing.
> >    $ povray "$POVHOME/ini/quires[160x120, No AA]" scene.pov
> >
> >
> > the brackets, too, are "special" to the (BASH?) shell.
>
> Try what jr suggested first - and if that doesn't work ->
>
> ---
> I don't often use ini files, but perhaps the issue related to the file
> names with spaces quoting issue with recent versions of POV-Ray?
>
> See, for example, github issue:
>
> https://github.com/POV-Ray/povray/issues/448
>
> and maybe too :
>
> Message: <6107d751$1@news.povray.org>
>
> or
>
>
https://news.povray.org/povray.bugreports/message/%3C6107d751%241%40news.povray.org%3E
>
> Bill P.

Thanks to both of you.  The answer was a combination of quoting the whole thing,
and escaping additional quotes.  Here is what worked:

povray "\"$POVRAY/ini/quickres[160x200, No AA]\"" scene.pov

-- Chris R.


Post a reply to this message

From: jr
Subject: Re: ini file section references
Date: 16 Jun 2023 10:50:00
Message: <web.648c761638ef8a73b49d80446cde94f1@news.povray.org>
hi,

"Chris R" <car### [at] comcastnet> wrote:
> ... Here is what worked:

out of interest :-),  do apostrophes work, also ?

  $ povray "$POVRAY/ini/quickres['160x200, No AA']" scene.pov

("'$POVRAY/ini/quickres[160x200, No AA]'" too ought "to fly")


regards, jr.


Post a reply to this message

From: Chris R
Subject: Re: ini file section references
Date: 16 Jun 2023 12:50:00
Message: <web.648c91cb38ef8a7364326bc25cc1b6e@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
> hi,
>
> "Chris R" <car### [at] comcastnet> wrote:
> > ... Here is what worked:
>
> out of interest :-),  do apostrophes work, also ?
>
>   $ povray "$POVRAY/ini/quickres['160x200, No AA']" scene.pov
>
> ("'$POVRAY/ini/quickres[160x200, No AA]'" too ought "to fly")
>
>
> regards, jr.

I gave it a try and at least in ksh it seems to work as well.  I thought I had
tried that, but maybe I reversed it and used '"$POVRAY..."'

-- Chris R.


Post a reply to this message

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