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
code question
Re: code question
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;
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
Here's an example with 3 balls to get you going...
- Attachments
-
- 3balls-onrelease.jzml
- (4.84 KiB) Downloaded 56 times
-
- Newbie
- Posts: 6
- Joined: 08 Jul 2013 08:03
Re: code question
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
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