Page 1 of 1

code question

Posted: 08 Jul 2013 21:13
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

Re: code question

Posted: 08 Jul 2013 23:05
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;

;)

Re: code question

Posted: 09 Jul 2013 10:32
by Softcore
Here's an example with 3 balls to get you going...

Re: code question

Posted: 10 Jul 2013 09:57
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