Page 1 of 1
Setting a cancel button
Posted: 13 Dec 2012 14:33
by benwin
Is there any way to, when setting a button to on, sending a script to set another 1 or more buttons to off?
B
Re: Setting a cancel button
Posted: 13 Dec 2012 15:25
by Softcore
I dont get what you mean by 'cancel" button but making objects of lemur interact with each other is one of the most basic things you can achieve with scripting. Do yourself a favor and follow-do the examples found in the Lemur manual - a lot of your questions will be answered.
As for your question....Lets say you have ButtonA and you want it to turn ButtonB, C, etc. off when ButtonA is on-pressed.
Add a script in ButtonA, on expression x, rising from 0 (up arrow)
Code: Select all
ButtonB.x=0;
ButtonC.x=0;
ButtonD.x=0;
Yes, thats all!
Re: Setting a cancel button
Posted: 14 Dec 2012 17:07
by benwin
Softcore
Thankyou once again.
Sorry for asking simple questions but I am off on tour next week and starting to get worried I won't be ready, I read through the manual but my knowledge of script is terrible, I'm a good dancer though!!
Now I am all set up I have some breathing space so I'm going to do a bit of research and playing (not with my finished file though!!)
Are there any external sources where i could learn the basics, what kind of scripting is used.
Again thanks
Ben
Re: Setting a cancel button
Posted: 14 Dec 2012 18:24
by Softcore
After the manual, the only other place I can think of is the user library! I 've donwloaded many templates that werent of use to me but included functions, tricks and things I wanted to know how to accomplish. When you have time, trying to figure out how and why certain scripts work I think is the best tutor!
Also, keep in mind that the Editor's library can be a great help - drag drop in there (alt, mouse-drag) anything you want to further study or re-use in your own stuff, this way you wont have to search for it when you need it.
Again, the best way, IMHO is to not only get scripts and stuff from other templates but also get into the logic of things and how they work!