Selection sets in Max? (Feature request?)

Thorsten Ørts's icon

Is there a way to make Max remember one or more selections of objects, or is it possible to select all objects of some type that have a common attribute?

For example when objects aren't easily selectable by dragging to select because other objects get in the way , I often find myself having to very tediously select the same large set of UI objects to change some attribute on them, deselect them to properly see the effect of that change and possibly selecting them again if I'm not happy with the result.

In 3d modelling software like 3dsmax you can use named selection sets to avoid having to select the same group of objects multiple times, like this (video demonstration) and this (manual page), but it doesn't seem like Max has anything similar.

I tried doing this with javascript, but unfortunately selecting one object this way deselects all others as far as I can tell:

var sets = new Array();

function store(a)
{
    var p = this.patcher;
    var obj = p.firstobject;
    var oc = p.count;

    if (sets[a] == undefined)
    {
        sets[a] = new Array();
    }

    while (oc--)
    {
        if (obj.selected)
        {
            sets[a].push(obj);
        }
        obj = obj.nextobject;
    }
}

function select(a)
{
    for (var i = 0; i < sets[a].length; i++)
    {
        sets[a][i].selected = true;
    }
}

Roman Thilenius's icon

common attributes, no, only object of same sort(s) via the [universal object].

if you need the same selection of objects over and over again, try to move to a design strategy where this selection is also a logical group of objects - then you could use encapsulate and dencapsulate.

Thorsten Ørts's icon

Thank you for your answer, Roman.
I have at least partially solved my problem, see here: https://cycling74.com/forums/quality-of-life-improvement-selection-sets-in-max