General

code question

Started by markscheel on .

Sign in or create an account to join the conversation.

4 posts

Topic starter
hello everybody

i m new to the lemur software but not not totally new to scripting.

i want to generate the following behavior for a multi ball.
when i release the multi ball i want it to return to specific value.
i know how to assign a controller to a ball but i could not find a code snippet where i says
onRelease.goTo.55 i m missing the event.
is there a reference for scripting for the lemur or a somehow more code oriented manual.

any help appreciated

cheers

mark
Generally speaking most events are evolved around changes of variables called expressions, sometimes built in objects, sometimes custom - defined by you...Then in the scripts on expression setting comes into play....

For your case for example, the z expression of all objects (which have a z expression) is 0 when the object is not touched, 1 when touched, so on release really is on expression z dropping to zero - an arrow pointing down should be selected at script editor relevant option.


So you define when the script will be executed with these settings and inside thescript you just code the action for example x=0.5;

;)