maxtoolbox icon indicating copy to clipboard operation
maxtoolbox copied to clipboard

can't address objects in tabs with the command prompt/shell

Open jamesb93 opened this issue 4 years ago • 4 comments
trafficstars

As the title suggests you cannot address objects within tabs with the shell (Shift + R). It fails silently, on any object embedded into a tab but works with sub patchers to an arbitrary degree. Is this perhaps something broken on cyclings end for traversing patchers that are tabbed?

jamesb93 avatar Sep 16 '21 14:09 jamesb93

I have looked into this and as far as I can tell the problem is that when opening a subpatcher in seperate window view max.frontpatcher returns the actual subpatcher instance. But when working with tabs the frontpatcher stays the parent patcher. So I guess this is indeed a "bug" in the scripting api. There is an option to traverse all subpatchers and collect all select by using:

max.frontpatcher.applydeep(applycollect)

but this will result in a new bug, because if you have objects selected in both parent patcher and subpatcher it will connect them all.

Screen Shot 2021-09-27 at 14 33 31

Here objects were connect when in tab view, then opened seperately to show the problem side by side

tmhglnd avatar Sep 27 '21 12:09 tmhglnd

I remember this being a problem when the tabs feature got out, I reported it but it never got fixed :/

natcl avatar Sep 27 '21 13:09 natcl

Ah that's a shame. I did have a dig with @tmhglnd's solution but hit the same wall. Maybe one day it will be fixed

jamesb93 avatar Sep 27 '21 18:09 jamesb93

You could file a new bug-report since they are currently busy with the 8.2 beta fixing a lot of bugs.

tmhglnd avatar Sep 28 '21 13:09 tmhglnd