dial vs. jsui_360dial.js

Nov 7, 2007 at 3:46pm

dial vs. jsui_360dial.js

Hi. Anyone here know if/how its possible to get the jsui_360dial.js
behave like [dial] where the mouse cursor gets hidden and there is no
stopping because hitting the edge of the screen.

#P window setfont “Sans Serif” 9.;
#P flonum 256 189 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 185 189 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user jsui 256 94 64 64 1 0 0 jsui_360dial.js;
#P user dial 185 93 49 49 100 1 0 0 95 359 1 1. 170 170 170 221 221 221
120 120 120 225 225 225 0 0 0 0 0 0;
#P connect 1 0 3 0;
#P connect 0 0 2 0;
#P window clipboard copycount 4;

All best,
Jakob

__________________________________

Jakob Riis
jr.abstractions for MaxMSP
http://www.sonicescape.net/maxmsp/
__________________________________

#34505
Nov 7, 2007 at 3:57pm

On 7 nov. 07, at 16:46, Jakob Riis wrote:

> Hi. Anyone here know if/how its possible to get the jsui_360dial.js
> behave like [dial] where the mouse cursor gets hidden and there is no
> stopping because hitting the edge of the screen.

It’s possible, but you’ll have to modify how jsui_360dial.js is
implemented. As an example you can have a look to my ej.numbox, which
shows that behavior (endless, hidden pointer).

HTH,
ej

#116629
Nov 7, 2007 at 4:35pm

Here’s a quick fix. Altered the ondrag function in the js file and added some business in max land.

best,
Zachary

#116630
Nov 7, 2007 at 6:58pm

One small improvement. Now the cursor reappears at the same point as it disappears (like in the dial object)

#116631
Nov 8, 2007 at 12:31am

Thanks Emmanuel and Zachary.
I’ll see if I can implement the solution into the javascript.
:-)
J

__________________________________

Jakob Riis
jr.abstractions for MaxMSP
http://www.sonicescape.net/maxmsp/
__________________________________

#116632
Nov 9, 2007 at 2:26pm

Thanks to the suggestions by Emmanuel and Zachary i managed to modify
the jsui_360dial.js and give it the endless dial behavior. Zip file attached.
/J

__________________________________

Jakob Riis
jr.abstractions for MaxMSP
http://www.sonicescape.net/maxmsp/
__________________________________

#116633
Nov 9, 2007 at 2:32pm

it seems the attachment is missing in my previous post, here it is (again)… :-)
/J

#116634
Nov 9, 2007 at 6:22pm

Jakob Riis wrote:
> it seems the attachment is missing in my previous post, here it is (again)… :-)

There’s a bug in the forum code that prevents attachments attached to
list posts from making it onto the forum. This bug has been fixed
several times, but keeps re-appearing. I’ve talked to the FudForum devs
about this, and they’re suggesting that we update our forum install.
Since our forum code is heavily customized in some areas (mostly having
to do with the mailing list integration, but also many display tweaks)
this is not as easy it sounds.

In the meantime, as a big a pain as it might seem, it’s recommended that
you use the forum to post attachments, as those will both make it to the
forum and the list without issue.

Thanks for your patience and understanding in this matter,

w

#116635
Nov 9, 2007 at 6:31pm

Very nice!

#116636
Apr 22, 2009 at 2:22pm

Hello.

Sorry to resurrect an old thread, but would someone be able to tell me how to set attributes such as min, max and range for the jsui_360dial? The default is set as 0-1 but I’m not sure how to change it. For instance, how would I change it so the output values would be 0-360?

Many thanks.

#116637
Apr 22, 2009 at 3:26pm

scale or zmap are great objects too Wink Otherwise the attached js should do the trick… Not really tested though.

#116638
Apr 23, 2009 at 1:27pm

Thanks Emmanuel. Much appreciated.

#116639

You must be logged in to reply to this topic.