XML Feeds

.

[javascript-dev] retreive value of named object in js?

Patrick Delges pdelges at radiantslab.com
Tue Aug 14 02:14:50 MDT 2007


On 13 août 07, at 22:17, pnyboer wrote:
>
> but of course it does not.  any suggestions?

An ugly one, but it works: using [grab]

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 56 125 62 196617 prepend foo;
#P newex 94 62 30 196617 grab;
#P objectname grabKnob;
#P button 36 228 15 0;
#P newex 56 253 99 196617 js boo.js;
#P number 158 157 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user pictctrl 158 88 100 50 
ti_HD_X:/Users/pdelges/Documents/biglogo.pict 0 50 0 1 26 0 1 0 64 64 
128 0 1 10 2 0 1 270;
#P connect 5 0 2 0;
#P connect 4 0 5 0;
#P connect 4 1 0 0;
#P connect 3 0 2 0;
#P connect 0 0 1 0;
#P window clipboard copycount 6;

save as boo.js:

var myobject ;

function bang ()
{
	myobject = this.patcher.getnamed("grabKnob");	
	myobject.message("bang");
}

function foo (i)
{
	post (i);
}

But I deeply hope there is some "get" or "value" message hidden 
somewhere...

p

_____________________________
Patrick Delges

Centre de Recherches et de Formation Musicales de Wallonie asbl
http://users.skynet.be/crfmw/max



More information about the javascript-dev mailing list