Page 1 of 1

On Load and Lemur Editor

Posted: 06 May 2013 06:56
by amundsen
Hello,

What is the rule of activation for On Load scripts when Lemur is connected to the Lemur Editor ? Are they triggered everytime the project is modified in the editor or is it mandatory to load another project in Lemur directly then re-load the modified project to have those scripts triggered ? :?

Thank you in advance.

Re: On Load and Lemur Editor

Posted: 06 May 2013 09:32
by Softcore
They are triggered every time you change something in the editor - they are supposed to be triggered only once when the template is then loaded in the actual Lemur on iPAd.

To better understand this, create a project with two interfaces....

Create a onload script that will select the first interface.

on Load

Code: Select all

selectinterface(0);
Now go to the second interface and work - script - put objects in it....You will notice the onload script firing up and moving you to the first interface.

If the behavior of an onload script bothers you for further development of a template, simply untick its "checkbox" (in the editor's list window) to work on your template and then just tick it when you are done, before saving your final template.

;)

Re: On Load and Lemur Editor

Posted: 06 May 2013 10:08
by amundsen
Thanks again Softcore !