Applying Scripts to objects

(Difference between revisions)
Jump to: navigation, search
(Created page with "* 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 th...")
 
Line 22: Line 22:
  
 
* Done !
 
* 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.

Revision as of 20:40, 18 February 2013

  • Once in Maratis editor, click on "Add Mesh"

addmesh.png


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

rename.png


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

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

script.png


  • Click on the Scene button and locate your script :

scene.png

scriptselect.png

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.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox