POV-Ray : Newsgroups : povray.windows : Output_File_Name -- quoted string question : Re: Output_File_Name -- quoted string question Server Time
24 Apr 2024 02:11:40 EDT (-0400)
  Re: Output_File_Name -- quoted string question  
From: clipka
Date: 13 May 2013 14:03:23
Message: <51912aeb$1@news.povray.org>
Am 12.05.2013 18:26, schrieb Kenneth:
> Thomas de Groot <tho### [at] degrootorg> wrote:
>> On 12-5-2013 14:16, Kenneth wrote:
>> In my own povray.ini file, I write these things between quotes:
>>
>> Output_File_Name = "c:\Documents and Settings\Owner\My
>> Documents\POV-Ray\v3.6\tests\"
>>
>
> Hey, this works!
>
> I'm embarrassed to say that I tried this earlier...but I didn't run
> an actual render to see what would happen!!  :-/  The reason being, that all of
> the text in my quickres file that *followed* this line then took on the
> appearance of being in string notation--like one *long* string, all the way to
> the end of the file. (Rather hard to describe.) So I didn't pursue it, thinking
> I had made a mistake.
>
> That behavior is rather odd, to say the least--although it doesn't affect the
> operation of the code.

The reason is the trailing backslash: In POV-Ray's scene description 
language (and many other languages), the backslash serves as an "escape 
character" that changes the meaning of the following character(s); if it 
precedes a double quote, this double quote is taken as part of the 
string rather than the end of it.

This is not the case in INI files, because it would make specifying 
Windows path names a pain.

Or, actually, it would have done so in the past. Nowadays, Windows - and 
most Windows programs, including POV-Ray - also accept Unix-style 
forward slashes in path names. So the following should work perfectly 
fine without messing up the way the rest of the file is shown:

Output_File_Name = "c:/Documents and Settings/Owner/My 
Documents/POV-Ray/v3.6/tests/"

You can also mix both styles.


Post a reply to this message

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