Results 1 to 5 of 5

Thread: what lang is arscript closest to/based on?

  1. #1
    Join Date
    Jul 2011
    Location
    Berkeley, CA
    Gallery
    View images
    Posts
    8

    what lang is arscript closest to/based on?

    I'm wondering what existing scripting language the AR scripting language is based on. I'd like to be able to use existing scripting language templates in my favorite script editor if I can. Thanks.

    ArtRagePro -- with scripting -- Freaking cool as the underside of the pillow.

  2. #2
    Join Date
    Feb 2010
    Location
    Nevada
    Gallery
    View images
    Posts
    139
    Well, according to the advanced scripting guide, it is "C-like".
    Cat Boxes, a web comic

  3. #3
    Join Date
    Mar 2006
    Location
    Ambient Design
    Gallery
    View images
    Posts
    3,859
    The ArtRage scripting language has some elements of XML, C and unformatted language.
    Originally I was going to adhere as much as possible to the XML standard but quite quickly realized this would make for a very bulky file which was 'human readable' in the same way a bicycle is 'human digestible' (it may well be possible to digest a bicycle, but who really wants to?). So while there are blocks defined with <block> </block> statements, the contents of the blocks may not be legal XML.
    For flow-control and programmability the language resembles C or C++. The for/next, while, if/then syntax is practically identical to C.
    But there are also elements of C++ with functions attached to the string and file variable types. And I've also thrown in some handy dynamic strings and dynamic arrays for good measure.

    But if you're recording a script most of the commands are a short-hand representation of data ArtRage needs to reproduce the strokes and layer operations. Speed of writing and reading the script data to and from the file is important so recording a script doesn't interfere too much with the process of painting. And so the scripts aren't too bulky for sharing.

    So while I would have liked to have stuck to one standard, practical considerations meant I had to take elements of some different means of recording data to a file.

    For the sake of writing a procedural script if you know C you should be able to immediately do most things (with just enough limitation on the language you're going to have to keep refering to the scripting language guide and cursing my name. )
    AndyRage's mantra for graphics engine code:
    "Sure - how hard can it be?"

  4. #4
    Join Date
    Jul 2011
    Location
    Berkeley, CA
    Gallery
    View images
    Posts
    8
    Quote Originally Posted by terrygillooly View Post
    Well, according to the advanced scripting guide, it is "C-like".
    Ah! That's where that file is! Thanks!

  5. #5
    Join Date
    Jul 2011
    Location
    Berkeley, CA
    Gallery
    View images
    Posts
    8
    Quote Originally Posted by AndyRage View Post
    The ArtRage scripting language has some elements of XML, C and unformatted language.
    ...
    cursing my name. )
    Thanks for the explanation. Cursing your name. Feh. That'll never happen. I can probably use a c template for the recorded stuff without too much problem, probably. The xml template ends up looking just like vanilla text with colored tags. Using jEdit and TextWrangler on OSX.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •