Edit/Save Abstraction from parent patch?

e boats's icon

Hello, had a few questions :

I have a patch that uses other Abstraction patches in other files in the same folder. In the Abstraction patches, I've set the "Show on Patcher tab" to be "parent" so I can see the Abstraction files in tabs from my parent patch.

When I go to one of the tabs, I'd like to be able to edit the Abstraction and save it from there, so I click "Modify Read-Only" and Unlock it and make and save changes. But when I close the parent patch and re-open it, I see that my changes aren't saved. Is there some config setting I need to make in order to change the Abstraction from the parent like this? Otherwise, it's cumbersome to open the original Abstraction files in separate windows to make changes to them.

Also, I'm not seeing keyboard shortcuts for some things. Are there keyboard shortcuts for the Add and Remove Watchpoint functionality ( e.g. "Add Watchpoint - Print" or "Remove Watchpoint")? Thanks for any info!

Roman Thilenius's icon

the reson why since max 6 the "open original" menu item has been moved into a submenu (as the only entry of that submenu) is beyond me, because it is probably the most used function of all, but i think it is still doable that way.

and it makes kind of sense that it is not made too easy to accidentially overwrite subpatches on the disk.

of course it would be cool if it at least could be triggered by a keyboard command.


what about the following procedure: open it once that way, and then leave the abstraction window open for the next round of edit&save?


or... something like this:

e boats's icon

Thanks for the reply! Yes, I see what you mean but it does seem like kind of a wonky workflow with that "Open Original", especially since I'm using the "Show on Patcher tab" - "parent" setting to have Max open things in tabs. Many IDE's let you open files in tabs rather than new windows, and tabs IMO are much easier to deal with than having Max open a ton of new windows. Also, when I do "Open Original" to make edits, I can't put a Watchpoint in that window for debugging from the parent - it doesn't work.

It would be nice if Max had a Preference option to allow you to override the default setting and let you edit Abstractions directly from the parent instead of going through all these extra hoops and opening more windows.

At the very least, having a keyboard shortcut for "Open Original" would save time. I'm still new to Max but am a little disappointed in the lack of some usability features, like having keyboard shortcuts for everything and more Preference configs.

Roman Thilenius's icon

this should not become an excuse for possible imperfections in the workflow, but it is typical for max users to create abstraction patchers once and then use them unchanged for the next 25 years.

and yes, of course, there are also subpatchers which are project-specific and where this rule does not apply to. but if you feel the need to change the code of subpatches all the time, why don´t you use [p] until the patch is about a beta version or better? isnt it generally a lot of unneccessary work to save something before it is ready?

and i do not (yet) see the issue with debugging: when you change and save the original, the copies of the object in your main patcher will reload and can then be debugged with the main patcher.

debugging the original seems a strange idea since you could have more than one copy of it in your main patcher and needed to debug both in action.