Child pages
  • Scripting
Skip to end of metadata
Go to start of metadata

See also:

Generative Design

 

Adobe Creative Suite

 

Grasshopper

Link:

LEARN, The Catalogue
Post a question to Media Centre

Introduction:

Scripting is a tool that is used to control and automate certain tasks within a program.  A script is a series of statements that tells an application/program to perform a task or set of tasks.  You can think of it like the script of a play, which tells the actors what to say and how and when to say it. 

Scripting is not programming.  Scripting statements are usually written by the end-user (i.e. you) as opposed to the program core which is written by specific program developers.  The program core is often also written in different language to that in which you script.

To write script you need to have a basic (or more) understanding of a certain scripting language, but it¿s not necessary to have a COMPSCI degree.   Within architecture and design related fields scripting has become much more popular, common and productive.  Many architecture and design schools are teaching basic scripting and more and more programs are developing scripting capacities.

Scripting is written in the same way as one writes something in any lexical language.  There are various scripting languages, oriented towards certain tasks and with certain weaknesses and strengths. For a comparison of popular scripting  languages (Perl, Python, Rexx, Tcl, C, C++ and Java) try this essay

Languages:

 There are many scripting languages used.  In design and architecture we are primarily using the following languages:
1.     JavaScript: is a very popular scripting language which is object-oriented
2.     C++: is a very popular general-purpose language.
3.     AppleScript: was created by Apple and is used in most of Apple¿s applications.
4.     VBScript: is an Active Scripting language developed by Microsoft.

There are also a growing number of program-specific scripting languages, or ¿sub¿-languages.  See below for more on these.

Syntax:

The syntax in scripting is the set of rules that define how things get written down in that particular script.  It is like the grammar rules that we use in non-programming (lexical) languages (i.e. English, Hindi, Vietnamese etc) to produce comprehensible statements and therefore communicate effectively.

Most languages will use a different syntax, a different set of rules, to write script.  You will have to become familiar with the syntax in question. 

Programs-specific languages:

In architecture and design fields scripting is used in a number of different programs.  The most popular of which are
1.     3DS Max: which uses MaxScript
2.     Flash: which uses Action Scripting
3.     The Creative Suite: supports scripts written in AppleScript, JavaScript or VBScript.
4.     Rhino: which uses RhinoScript
5.     Second Life: which uses Linden Scripting

Advantages:

The following identifies a few of the advantages and disadvantages of the use of scripting in architecture and design.

One of the benefits of scripting is that many menial, repetitive and boring tasks can be taken care of by simply writing a script which can carry them out.  This repetitive aspect which is inherent to scripting, is also a reason for why so much contemporary architectural design is highly iterative.  Scripting is very good at iterations/repetitions of a component or action with often small successive changes. 

Disadvantages:

One of the disadvantages of scripting is that it can be very time intensive.  What perhaps may take an architect/designer 20 hours to write, may take someone with computer science knowledge and training only two hours. 

There are also those who argue that the result of an over prioritisation of scripting may lead to a lack of spatial and aesthetic comprehensions in architecture and design, and that the scripting architect or designer becomes therefore simply a technician.

Learning support:

To get you started Media Centre suggest the following tutorials:

Beginner A: Intro to JavaScript
Beginner B: Max Scripting
Beginner C: Action Scipting in Flash
Beginner D:Official RhinoScript 101
Beginner E: Linden Scripting
Beginner F: AppleScript

Additional:

You¿ll also likely find interesting:
·         RhinoScript Primer (PDF) this primer also downloads with a folder of handy scripts readymade.
·         Adobe Developer Connection provides a good range of information on using various scripting languages with Photoshop, Illustrator, Flash and other Adobe products.

References:

 

External links:

 

Published:

First published Mon. 1 Feb. 2010.
 

 

  • No labels