On Load and Lemur Editor

Discuss Lemur and share techniques.
Post Reply
amundsen
Regular
Posts: 62
Joined: 04 May 2013 19:11

On Load and Lemur Editor

Post 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.
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: On Load and Lemur Editor

Post 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.

;)
amundsen
Regular
Posts: 62
Joined: 04 May 2013 19:11

Re: On Load and Lemur Editor

Post by amundsen »

Thanks again Softcore !
Post Reply