object attrui

derf07's icon
The help of Max 8 mentions the "attrui" object which can have the attribute "attrfilter".
The help states:"Set the names of the attribute you want to display in the popup menu."I chose @ fontface as an attribute then I wrote "attrui @ attrfilter fontface [8]" to see if this attribute appeared in the "attributes" menu of the attrui object.
The code does not work.
Do you see how we should write this code?
Source Audio's icon

check this out, connect attrui to attrui
you can send messages as well, once you know
which work, like lock 1 or attrfilter border

derf07's icon
I don't understand. I quote the documentation again:
"...Set the names of the attribute you want to display in the popup menu."My question now will be: how do we bring up the popup menu?
HighHarmonics's icon

The popup menu for the attrui object is accessed by clicking on the small grey up/down arrows at the left edge of the attrui object.

Below, the function object has an attrui object attached. The function object has ~ 45 attributes. If you want to limit the attributes that you can access - so that you only see the ones you use, create a message box with the attribute names and once you send the message, only those attributes will be visible in the attrui menu (click the arrows). If you send a messgae with just "attrfilter" all of the attributes will come back in view.

You can also attach a 2nd attrui object to the 1st attrui object, which allows you to control the attributes of the attrui object - for example to toggle between the display name and label (usually more descriptive).

derf07's icon

Thank you very much.