« Return to Thread: Jazzmutant Lemur

Re: Jazzmutant Lemur

by Axel Balley-3 :: Rate this Message:

Reply to Author | View in Thread

Hi Hjalte,
You can setup a script on the Lemur that will be triggered by incoming OSC messages, and will show/hide the object passed as a string argument. The second argument will set the show/hide flag.
Something like : 

--
show_my_object() - On OSC - /show_my_object
// find object based on its string path
decl obj = findobject(OSC_ARGS[0]);
show(obj, OSC_ARGS[1]);
--

You can then show/hide any object from SC by sending these OSC messages : 

['/show_my_object', '/Container/Fader', '1']
['/show_my_object', '/Container/Pads', '0']

There are also unsupported functions for object creation/deletion. You can use the same trick to trigger them from OSC.
They may or may not disappear in future updates, as they are quite dangerous to use (e.g deleting an object whose script is currently running).

I'm sending you the jzlib offlist.

Cheers,

Axel

Le 23 avr. 09 à 02:09, Hjalte Møller a écrit :

Hi all,

Thanks for the replies :)

I also find communication with lemur quite simple in sc, but still feel it could be easier. I thought writing classes would be hard, but my new LemurObject class is comming along nicely, and I've made an automatic lemur gui extention for the Patch class, which is really nice to :) It works like the patch, except the interface shows up on the lemur in a popup window...

LemurObject is almost self explanatory. It just takes a path to the object on the lemur,
and then all can be accesed thru methods.

I will share when I'm finished...

Axel - can we please have a hide attribute to the lemur objects ?
- and scriptable objects :P
i.e. a message to lemur
[ 'newObject', 'Fader', 'Interface', '/Container/Fader', 0, 10, 100, 100 ]
the four last items being rect...
and a delete also, which could work as an attribute, or just
[ 'delete', '/Container/Fader' ]

Hej Martin,

Hvor I danmark kommer du fra ?

Best, Hjalte


2009/4/22 Martin Vognsen <gnormaninvest@...>

Hej Hjalte

If it's just about talking to the Lemur:

I may be mistaking, but I seem to remember that the class they provide is a bit  buggy (?)
I suppose it provides a slight convenience of managing NetAddr (not much to manage, really) and OSCresponderNode's.

But actually I think it's already so straight forward to communicate with the Lemur without any additional classes that I just didn't bother installing it. The combo works extremely well out of the box. I try to do as much of the scripting as possible in SC rather than on the Lemur, you really appreciate how smooth and stable SC is when you've been scripting the Lemur for a while, plus you quickly run out of memory on the Lemur. I guess it's also a question of temper, but I like to just connect the thing and start building, working in patches rather than class based systems, so that I can constantly change code without having to recompile. (Though classes can be convenient for sure, where would we be without them!)

Martin

ps - nice to see a local supercollidist, btw...


Den 22/04/2009 kl. 14.04 skrev Hjalte Møller:


Hi,

I'm quite a happe Lemur user, and I'm looking for Classes for the lemur ?

Has anyone know if anything is written already ?

I'm about to start writing my own, but I'm quite new to writing classes.
So if somebody already did it better than I can, I shouldn't invent the wooden wheel again.

I'm also interested in sharing lemur patches and exchanging ideas...

Best,- Hjalte


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/


 « Return to Thread: Jazzmutant Lemur