POV-Ray : Newsgroups : povray.windows : Output_File_Name -- quoted string question : Re: Output_File_Name -- quoted string question Server Time: 19 Jan 2021 13:03:19 GMT
  Re: Output_File_Name -- quoted string question  
From: Alain
Date: 13 May 2013 00:50:45
Le 13-05-12 10:55, Thomas de Groot a écrit :
> On 12-5-2013 16:36, Stephen wrote:
>> It also works with "\" instead of "\\" as Thomas posted.
>>
>
> In some cases double back slashes are needed instead of single ones, I
> found out by experience. In particular, when declaring names to be used
> later in the code, like:
>
> #declare Terragen_Sky_Name = "Terragen files\\Skies\\Pano_09_0h_50a_"
>
> Not sure why that is though.
>
> Thomas
>

The back slash is the escape character in strings. For example, "\n" is 
used as a new line character, if you have \Skies\Pano,
it get parsed as "\s" "kies" "\p" "ano"
\s stand for the control character DC3 and \p for DLE


Alain


Post a reply to this message

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