Page 1 of 1
change object states via OSC
Posted: 22 Jun 2012 10:54
by allquiet
Hello there,
I am fairly new to the Lemur and have a couple of questions about changing object states via OSC messages (using Max/Msp). I have been looking through the forum and manual but couldn't find an answer. The communication between Max and Lemur is working, I am able to change the text of a Text object but can't find out how to address other objects.
Here is what I am trying to do:
1. change the state of a CustomButton Object (change between "on" and "off" state) via an OSC message
2. change the labels (and colour if possible) of the balls in a MultiBall object via OSC messages
It would be great if someone could point into the right direction!
Many thanks in advance,
cheers
Bernhard
Re: change object states via OSC
Posted: 22 Jun 2012 14:21
by findbuddha
Check page 72 of the manual about creating the proper script.
Re: change object states via OSC
Posted: 25 Jun 2012 10:32
by oran-outan
hi
you have to used on prepend object connect to udp send
for custom button :
/objectname value (0/1)
----------begin_max5_patcher----------
306.3ocsREsaCBBE8Y7qfvytN0FqI6sseillEJvrrnfQtl5VS+2GfRbsIy5x
VeAx8bubumyg6oHDYutWXH3mvawHzoHDxC4.PiwHRMsmUQM9xHftrrRPhGR0
PA1Aop70VACFZSVxpjXbZQg6ZHvch2M9DI22G892eHMKzGUWsTUI.+LRm.0c
v0nCPvGMhg4QjJ6j24RdNJxcDuPonDGsrHPAPz6U.ooUzHTb7irNCnqeoC.s
5lBNKI2q604yo3hPedSq.Es1qAxysRZ0rVgqbi7Se4oY1I7qbn+U6wfA8Jsg
caGYcp6JOaNCYy8zPR9lp8CmTIUWut64uC+Rqvn6ZYACLrrhmz.WX.ohBR6t
wTQEWTyAImK7oC7qVxaz1E1QN7C+KKkREKfQa9CLxFbN5KvhLPu+
-----------end_max5_patcher-----------
for multiball :
you have to send a list message like with the @nameattribute
/multiballname @labels one two three four five
----------begin_max5_patcher----------
361.3ocsS9rTCCBDF+L4ofgy0ZfX7emTu6SfSGGZx1VbHPlvFa0N8c2DRRap
UsQc5E1gc+.91e.qCHro1UfiQuk9DkPVGPH9T0IHsyIrL4pDsz4kwx.mSNGX
iZpgvJzm2Z.JtzRwEE.PmYKKnyTutUWtDSVnLyet.RvlyKVDNNbDMheYcfKt
wGtdbHcR6hToMa8zWNKh2sSyrFzHy.eo6KTRcWESYlxnAzaTQO4N06d4bQ0Q
rUqsD6Dy6bYA3.CJQk0rmS4MN0GBaG1ZylMBeKGZjyXzI0U1DDTOLZfj0.Kq
5zC.akmxASJ87GK0n5AoVSuSKmBZ2.X6EwdnFGUGDgeMa4Q+R1x+Kr8zRIGE
sistjAvjq72hwheBIhSJRBO1ys9Fc2ysdzx6YlVY97mWeeWmeeD5p9OlzA9t
6b5tVOEbnx3MROQh8EsPklBl9MPlJM2pLXqI9lKzg5o5+3G0S7+implrI3C.
NYVJf.
-----------end_max5_patcher-----------
you have the list of attribute on manual
best
Re: change object states via OSC
Posted: 26 Jun 2012 10:47
by allquiet
Hi there,
thanks for your help! The difficulty for me is to find the right attribute and data format it expects. It is somehow somewhere in the manual but it the information isn't collected in one place and it lacks proper examples. I could not find information about the fact that /multiballname @label expects a list as data input. However this works fine for me.
btw. to change the state of a CustomButton you need to send 0 or 1 to /CustomButton/x
Some examples would make life easier, so maybe Liine will publish something sometime.
cheers
B.