Install Instructions for GremlinScript Beta 2
---------------------------------------------

1) Copy angelscript.dll into your Animation master folder alongside master.exe (ie X:\Program Files\Hash Inc\V10.5)
2) Copy GremlinScript.hxt into your plugin folder (ie X:\Program Files\Hash Inc\V10.5\hxt)
3) Copy the *.gsc files into a folder somewhere (ie X:\gremlinscripts)

Running the Plugin
------------------
1) Under "objects" in the PWS select "plugins" and then "Run GremlinScript..."
2) Using the "..." to select a .gsc file or type in the name of the file
3) Click on the "Run" button
4) The script will run and the output will appear in the output window
5) Click on the the "Close" button

Functions
---------
The following functions are available:

void message(bstr) - prints out a message
double sin(double) - returns sin of the specified angle (in degrees)
double cos(double) - returns sin of the specified angle (in degrees)
double tan(double) - returns sin of the specified angle (in degrees)
bstr int2str(int) - converts an int into a string
bstr float2str(float) - converts a float into a string
bstr double2str(float) - converts a double into a string
Cube* createCube(double) - creates a cube object parameter specifies the length of the cube's side
Cylinder* createCylinder(double,double) - creates a cylinder object first parameter specifies the diameter, second parameter the length
Grid* createCrid(double,int,int) - creates a grid object first parmeter is the spacing between points, second parameter is the number of x points, third parameters is the number of y points

Objects
-------

Cube - an object representing a cube
 draw() - draws the cube
 setPosition(double,double,double) - sets the X,Y,Z position of the cube
 setRotation(double,double,double) - sets the X,Y,Z rotation of the cube
 setScale(double,double,double) - sets the X,Y,Z scaling of the cube
 setXPosition(double) - sets the X position of the cube
 setXPosition(double) - sets the Z position of the cube
 setYPosition(double) - sets the Z position of the cube
 setXRotation(double) - sets the X rotation of the cube
 setYRotation(double) - sets the Y rotation of the cube
 setZRotation(double) - sets the Z rotation of the cube
 setXScale(double) - sets the X scale of the cube
 setYScale(double) - sets the Y scale of the cube
 setZScale(double) - sets the Z scale of the cube
 setGroupName(bstr) - sets the name of the group that the cube will belong to
 setColor(double,double,double) - sets the color of the cube (RGB values 0 to 1)
 setRotationPoint(double,double,double) - sets the point around which the cube is rotated
 
Cylinder - an object representing a cylinder
 draw() - draws the cylinder
 setPosition(double,double,double) - sets the X,Y,Z position of the cylinder
 setRotation(double,double,double) - sets the X,Y,Z rotation of the cylinder
 setScale(double,double,double) - sets the X,Y,Z scaling of the cylinder
 setXPosition(double) - sets the X position of the cylinder
 setXPosition(double) - sets the Z position of the cylinder
 setYPosition(double) - sets the Z position of the cylinder
 setXRotation(double) - sets the X rotation of the cylinder
 setYRotation(double) - sets the Y rotation of the cylinder
 setZRotation(double) - sets the Z rotation of the cylinder
 setXScale(double) - sets the X scale of the cylinder
 setYScale(double) - sets the Y scale of the cylinder
 setZScale(double) - sets the Z scale of the cylinder 
 setGroupName(bstr) - sets the name of the group that the cylinder will belong to
 setColor(double,double,double) - sets the color of the cylinder (RGB values 0 to 1)
 
Grid - an object representing a grid
 draw() - draws the grid
 setHeight(int,int,double) - sets the height of the specified point. order of parameters are x,y and height
 getHeight(int,int) - returns the height of the specified point
 setPosition(double,double,double) - sets the X,Y,Z position of the grid
 setRotation(double,double,double) - sets the X,Y,Z rotation of the grid
 setScale(double,double,double) - sets the X,Y,Z scaling of the grid
 setXPosition(double) - sets the X position of the grid
 setXPosition(double) - sets the Z position of the grid
 setYPosition(double) - sets the Z position of the grid
 setXRotation(double) - sets the X rotation of the grid
 setYRotation(double) - sets the Y rotation of the grid
 setZRotation(double) - sets the Z rotation of the grid
 setXScale(double) - sets the X scale of the grid
 setYScale(double) - sets the Y scale of the grid
 setZScale(double) - sets the Z scale of the grid 
 setGroupName(bstr) - sets the name of the group that the grid will belong to
 setColor(double,double,double) - sets the color of the grid (RGB values 0 to 1)