umenu n° of items

Jun 5, 2008 at 9:10am

umenu n° of items

how can i get the number of items of a umenu?
thx

#38247
Jun 5, 2008 at 9:55am

On 5 juin 08, at 11:10, i.te wrote:

>
> how can i get the number of items of a umenu?

In Max4, I’m not sure there is a method to get this information. But
as your patch is filling the [umenu], it could count itself how many
items it puts in the menu.

Note that [ubumenu] understands the count message, but you may prefer
the rounded corders of [umenu] over the square corners of [ubumenu].

p
_____________________________
Patrick Delges

Centre de Recherches et de Formation Musicales de Wallonie asbl

http://www.crfmw.be/max

#133076
Jun 5, 2008 at 10:22am

There is a count message for [umenu] in max5 ;)

You can click on an object inlet to see what attributes/messages this object can receive (alt-right click the object on max4?).
Very usefull.

Ciao

#133077
Jun 7, 2008 at 12:27am

This is a total cludge, but you could do this:

max v2;
#N vpatcher 10 59 610 459;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 207 205 27 196617 + 1;
#P number 207 226 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 167 58 15 0;
#P newex 167 89 50 196617 Uzi 1000;
#P newex 207 185 40 196617 change;
#P newex 207 110 30 196617 grab;
#P user umenu 227 140 100 196647 1 64 156 1;
#X add Huey;
#X add Duey;
#X add Louie;
#X add Scrooge;
#P connect 4 0 3 0;
#P connect 3 2 1 0;
#P connect 1 0 2 0;
#P connect 2 0 6 0;
#P connect 6 0 5 0;
#P connect 1 1 0 0;
#P pop;

On Jun 5, 2008, at 2:10 AM, i.te wrote:

>
> how can i get the number of items of a umenu?
> thx

barry threw
Media Art and Technology

San Francisco, CA
Work: 857-544-3967
Email: bthrew (at) gmail (dot) com
Web: http://www.barrythrew.com

#133078

You must be logged in to reply to this topic.