Skip to content

Max 9 "new object with connection" creates object but keeps the previous one selected #15

@stefanostev

Description

@stefanostev

Hello! In Max 9 using the "new object with connection" command creates and connects the object correctly, however this also keeps the previous object selected. This hinders the shortcut flow a little bit, since it requires an extra navigation step in order to focus the newly created one via cmd+↓.

Managed to fix it by adding the following loop in connect_new_object() in maxtoolbox.js, but I'm writing this here instead of opening a pull request since I don't know about compatibility with previous Max versions (seems to work fine in Max 8 within Max For Live).

function connect_new_object(){
(...)
	
	for (objs in objarray){
        (...)
		
	     // Deselect previously selected object(s)
             for (var i = 0; i < objarray.length; i++) {
                   objarray[i].obj.selected = false;
              }
        // Select only the newly created object
        n.selected = true;
	}
(...)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions