POV-Ray : Newsgroups : povray.pov4.discussion.general : Curly braces replaced by indentations but only as an option ? : Re: Curly braces replaced by indentations but only as an option ? Server Time
1 Apr 2025 16:36:56 EDT (-0400)
  Re: Curly braces replaced by indentations but only as an option ?  
From: Mr
Date: 19 Mar 2025 20:10:00
Message: <web.67db5b927e3c5a9958bb8b2b6830a892@news.povray.org>
"ingo" <nomail@nomail> wrote:
> "Kenneth" <kdw### [at] gmailcom> wrote:
>
>   camera:
>     location<0, 2, -15>
>     lookat<0, 0, 0>
>     up<0, 1, 0>
>     fov<60>
>
>   light:
>     location<500, 100, -50>
>     color<1, 1, 1>
>     intensity<1.0>
>
>   object:
>     sphere:
>       center<0, 0, 0>
>       radius<1>
>       material:
>         texture:
>           color<1, 0, 0>
>           reflectivity<0.2>
>
>   object:
>     plane:
>       normal<0, 1, 0>
>       distance<-1>
>       material:
>         texture:
>           color<0.2, 0.8, 0.2>
>           reflectivity<0.1>
>
> ;)
>
> ingo

In python you can only have tab sized (4 spaces) indents like this, which looks
more tidy/less error prone (though I understand people would like more
flexibility and perhaps more compact concision) :

   camera:
       location<0, 2, -15>
       lookat<0, 0, 0>
       up<0, 1, 0>
       fov<60>

   light:
       location<500, 100, -50>
       color<1, 1, 1>
       intensity<1.0>

   object:
       sphere:
           center<0, 0, 0>
           radius<1>
           material:
               texture:
                   color<1, 0, 0>
               reflectivity<0.2>

   object:
       plane:
           normal<0, 1, 0>
           distance<-1>
           material:
               texture:
                   color<0.2, 0.8, 0.2>
               reflectivity<0.1>


Post a reply to this message

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