PDA

View Full Version : Calling functions located in other scripts


Sjaak
01-13-2010, 04:45 PM
Hi,
I haven't found anything about this in the manual yet. The idea is to setup a custom Mobius library with (nested) functions and to improve maintenance and reuse/share code with others. Something like an #include mechanisme.

Thanks
Sjaak

Per Boysen
01-13-2010, 09:04 PM
You write a line like
Call "gretrigger"

Note that it is the file name you are calling from inside another script - not the name of the called script (as is what we see in Mobius menus). In this example the file name of the script (we're calling from inside another script) would be "gretrigger.mos".

What the called script's name is doesn't affect the process of launching it from inside another script. In this example it could be "Global Retrigger", or something else...