sending attribute of an object inside a poly, through a attrui outside poly seems to not work

Laurin Baumann's icon

So I have a instrument using poly. inside it is a mc.generate and I want to select it's operator function from outiside poly with an attrui. I know I could use umenu e.g. but I want to have the existing long list that automatically appears upon connecting attrui to the mc.generate.

if i connect the attrui into the poly, the attrui only seems to think i want to change poly attributes. how do i go about this? s/r doesn't work either. What would I need? Thanks!

TFL's icon

[attrui] only works with the object it is attached to. In this case you'll need to populate a [umenu] by yourself 🙃

If that helps, if you have the ease package installed, you have a ease.chooser.maxpat in your search path, which has a [umenu] filled with all the ease options. That could be a starting point.

Laurin Baumann's icon

@TFL I see thanks.... I was trying everything xd that's so dumb. I don't understand why they haven't implemented the attrui as a standalone object yet. that's wild...

I will look into the package thanks!!

TFL's icon

There is plenty of ways to address an attribute of an object buried in subpatcher or anywhere really, but getting the possible values for that attribute is a different story.

One exception though is attributes that are also parameters supplied by some objects (gen-based, pix variants, v8, RNBO, abl, and... poly~!) Turns out you can declare parameters inside of a [poly~] with the help of [param], but sadly for now it is limited to ints/floats, so no enum list [like mc.generate~]'s @op would require. You're good to copy the various op by hand.