POV-Ray : Newsgroups : povray.general : long syntax : Re: long syntax Server Time
5 Aug 2024 22:21:33 EDT (-0400)
  Re: long syntax  
From: Mike Williams
Date: 24 Jul 2002 02:26:50
Message: <TWCvYBAyfkP9EwXC@econym.demon.co.uk>
Wasn't it Rafal 'Raf256' Maj who wrote:
>Christopher James Huff <chr### [at] maccom> wrote in news:chrishuff-
>1C8### [at] netplexaussieorg
>
>> The only benefit is less typing. 
>
>that saves time and is more comfortable

If your main objective is to save typing, then you might consider using
the existing keyword expansion and/or codelist features.

Keyword         your            Keywod
                suggestion      Expansion

texture         @tex            tex[TAB][TAB]
material        @mat            mat[TAB]         
finish          @fin            fini[TAB]
normal          @nor            nor[TAB]
color_map       @cmap           co[TAB][TAB][TAB]
normal_map      @nmap           nor[TAB][TAB][TAB]
sphere          @sp             sph[TAB]
box             @bo             box
plane           @pl             pl[TAB][TAB]
torus           @to             to[TAB][TAB][TAB]
superellipsiod  @sup            sup[TAB]
blob            @blo            bl[TAB][TAB]
brilliance      @br             bril[TAB]
diffuse         @di             di[TAB][TAB]

The difference in the number of keystrokes is fairly minimal, but
keyword expansion and codelist have the following advantages:-

1. The resulting code is readable.

2. ALL the POV keywords are supported.

3. Easier to remember. E.g. you don't have to remember whether @br is
short for "brilliance" or "brightness".

4. You can use it to generate scenes that are compatible with previous
versions of POV.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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