Applying Scripts to objects

Once in Maratis editor, click on "Add Mesh"

https://dl.dropbox.com/u/19970067/MWiki/ApplyingScript/addmesh.png

Select your object, then name it like want (here i kept the default)

https://dl.dropbox.com/u/19970067/MWiki/ApplyingScript/rename.png

Now create a new text file in your project/scripts folder, name it like you want, e.g.: new.lua

https://dl.dropbox.com/u/19970067/MWiki/ApplyingScript/script.png

I quickly edited the file for the example, this script will rotate the mesh on the X axis.

Click on the Scene button and locate your script:

https://dl.dropbox.com/u/19970067/MWiki/ApplyingScript/scene.png

https://dl.dropbox.com/u/19970067/MWiki/ApplyingScript/scriptselect.png

https://dl.dropbox.com/u/19970067/MWiki/ApplyingScript/scriptok.png

Done!

Note: Only one script can be added to a scene at a time. To add more, use the 'dofile' function within a script, and include multiple other scripts.