I need to set up a patcher that initializes every time with a pattr object bound to a bpatcher object. It appears that Max does not allow pattr objects to bind with bpatchers if the bpatcher is already linked to its patcher file.
My initial workaround was to save the file without the bpatcher linked so that the pattr object can bind to it as it loads. Then have a loadbang trigger a script to replace the bpatcher’s patcher name (which is null at this point in time) with a real file name.
This works fine but only as a one shot deal. For example, if I save my patch, the linked file name gets saved with the bpatcher. Thus, when reopening the file, the pattr object cannot bind to the bpatcher so I’m back at square one.
Does anyone have any experience with this or any ideas for a solution? I've searched the documentation, the Web and have asked a few fellow Max users and we're pretty stumped. Any help would be greatly appreciated.
Please save as