ARSA Script  2.3.8
ARSA Script 2.3.8 API documentation

Introduction

Welcome to the ARSA Script API documentation. Here you'll find any information you'll need to develop applications with the ARSA Script. If you are looking for a tutorial on how to start, you'll find some on the homepage of the ARSA Framework at www.arsa.ai or inside the SDK in the examples directory.

The ARSA Script is power full script to control layer on photoshop to be an easy-to-use, so this documentation is an important part of it. If you have any questions or suggestions, just send a email to the author of the engine,
Asst.Prof.Dr. Arsa Tangchisomkit
suppo.nosp@m.rt@s.nosp@m.arosw.nosp@m.orld.nosp@m..com

Functions

General: Main Functions.
Layer: Layer Functions.
File: File Functions.
Audio/Video: Audio/Video Functions.
Built-In Script: Built-In Script Functions.
Xml-JSon: Xml-JSon Functions.
Array: Array Functions.
String: String Functions.
curl: curl Functions.

Example

A simple code, move layer on psd name's "jet"
I think this example shows the usage of the engine quite well:

touch(isleft,move(jet,-500,0))
touch(isright,move(jet,500,0))
touch(isup,move(jet,0,-500))
touch(isdown,move(jet,0,500))

Math

Mathematics operator can be use in function follows:

+
-
/
%
abs
acos
asin
atan
atan2
ceil
cos
cosh
exp
floor
ln
log
log10
pi
pow
sin
sinh
sqrt
tan
tanh

Math Example:

struct($jump,velx,vely,degree,speed,gravity)
set($jump.degree,60)
set($jump.speed,22)
int($angle,$jump.degree*3.14/180)
set($jump.velx,cos($angle)*$jump.speed)
set($jump.vely,sin($angle)*$jump.speed)

ARSA Script - Official Example

A good example can find on sdk example folder.

arsa029_Studio_Touch
arsa030_Studio_Hit
arsa031_Studio_Text
arsa032_Studio_Snd
arsa034_Studio_Snd_Advance
arsa035_Studio_Game
arsa036_Studio_Video
arsa037_Studio_VideoPsd
arsa038_Studio_ScrollScene
arsa039_Studio_ScrollScene_Layer
arsa040_Studio_FSM_State_Select
arsa041_Studio_Manager_Misslie
arsa042_Studio_Manager_Misslie_Hit
arsa043_Studio_Manager_Misslie_Hit2
arsa043_Studio_Manager_Misslie_Hit3
arsa044_Studio_Gage
arsa045_Studio_Var
arsa046_Studio_Var_Advance
arsa047_Studio_Struct
arsa048_Studio_For
arsa049_Studio_For_Advance
arsa050_Studio_Array_Var
arsa051_Studio_Array_Struct
arsa052_Studio_Array_Struct_Advance
arsa053_Studio_If
arsa054_Studio_If_Else
arsa055_Studio_If_Else_Advance
arsa056_Studio_Function
arsa057_Studio_Procedure
arsa058_Studio_While
arsa059_Studio_ReadFile
arsa060_Studio_ReadFile_From_Cloud
arsa061_Studio_ReadFile_Unicode
arsa062_Studio_WriteFile
arsa063_Studio_Group
arsa064_Studio_FSM_Run_Jump