code question

Discuss Lemur and share techniques.
Post Reply
markscheel
Newbie
Posts: 6
Joined: 08 Jul 2013 08:03

code question

Post by markscheel »

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

Re: code question

Post by Softcore »

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;

;)
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: code question

Post by Softcore »

Here's an example with 3 balls to get you going...
Attachments
3balls-onrelease.jzml
(4.84 KiB) Downloaded 57 times
markscheel
Newbie
Posts: 6
Joined: 08 Jul 2013 08:03

Re: code question

Post by markscheel »

hi

thank you so much for this information
this seems to be easier than i thought.

i ll have a look into your example ASAP.


cheers

mark
Post Reply