Hi, I need a way to have all my slider value set to 255 (I’m working on dmx project). when bang is pressed all value go to 0 for comeback to 255 when bang is released. any suggestion?
I’m not sure I understand your question, can’t you just send 255 as a message and connect that to your sliders?
A patch would help.
Interestingly, there aren’t that many objects that respond to BOTH mousedown and mouseup (at least not that many I know of). One object that does respond to both is lcd. Another is mousestate. Here are solutions for each. Probably someone has already designed something using jsui, as well.
----------begin_max5_patcher---------- 754.3oc2XtsbaBCDF9Z7SgFt1MC5.Xn20miNY5fAUa0BRdLxSRal7tWc.hch CHQLgwt2fFsHK+ue6pkEdZQP3ZwizlPvWAeGDD7zhf.iIsgf14Ag04OVTk2X VVXMsoIeCMbo8dR5iRi8nNK6xkEaY7M+XOsPZ2YHJ8tnk.HNQOfQ2EqlnLAt u82vJM6gX8u9BF1sQ+Tvk77Zp4VeaOKup6N7C0LdEUZTD5nQwAYmU3IaRC6u lMAhT+8Vy1UJ+yNpUgggf60244EKzWVdgv.EGO.NxR7lFnraHZvoOnz7Yvng VobcPD.5lIFQARw5qnndXxpQxD36xD7HYx5b9lvkGGmTFsaOiKAJ40PKEOve AT6oMTtLWxD7WcdxPKDIVOD0d4EVMvIvDyhgQnAAb7j.3nd.7mB0NryAyxHF WNIyWj0lQlZ9coqFDXIWa.qPTWqfvYDqnhU7avV5dpCbYOBlP7kVoQGWeBbP XQt1fUUQoyJSV+CQ5t9tdFtaapDEJm4DU5gCQ5qvSEqQpK3zMx3xOd8mQjXb NJPoodGkg2d0PdUk2y8dLtspqO0PgYWa9+GowsNWF5QqJvz+6abCGQ7GGI29 cts1MKZe9nkE8dXXZJ4itjN1l3NZczNaGcr8aMb+rP7Mb+r8cPhK1IppbWZA ZAEAaSl5gPna+yRueup8WiIwi9Nu5dFy5CRof616Z6lJZHma0HbA3fI4SYXz D.aTsKS83zuMEe0vm9mjXX7HSsa6gr2gIsVfqJAszJh39opjqfBAFco5Fm+1 Oblw2z1eMiZDG1WzsUcum..8h6UpxmXbyKfc5hT4+fiLXKqrjxO83ZMqbmPE qZEQOQLe0j9ytcxeWOZJdV0j9ie4VSIyqlV4ilxleMAcno2Df+r0jOoS5Fel SIQ7.S5VMFilvn1mPadyXbF97Y1Of.lDqKrombo9QhGrcdy.0u6m6v8LqIrO g6z4OEzImRleN4TSj4USHezzrJIep6OuPh7IyH0jmW7OKB6aBB -----------end_max5_patcher-----------
I use [ubutton] for these kinds of things, you can lay it over anything you want. Do check the "mouse released outside" outlet, you will probably need to incorporate that possibility into your clicking/releasing logic.
Oh, yeah. I forgot that ubutton does both. That’s the simplest.
yep, ubutton is a good way, but it doesn’t work in this case. I explain my project. I’ve a rough with 16 arduinos button that control 16 rgb led par. all par value are on 255, when a button is pushed 2 value go to 0. when the button is released, the values return to 255. I know, is a simple thing, but it drive me crazy. I’m working now on Christopher suggestion…
yep, I was working with 0 only on the select object. problem solved with select 0 1 .