bpatcher & pattr issues

Jul 28, 2011 at 9:29pm

bpatcher & pattr issues

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
MainFile.maxpat

– Pasted Max Patch, click to expand. –

The bpatcher’s patcher file. Please save as
LinkMe.maxpat

– Pasted Max Patch, click to expand. –
#58230
Nov 9, 2011 at 4:14pm

I have been frustrated with the same issue. I need to control the presentation_rect of bpatcher objects, but the pattr bindto breaks after the file is saved and loaded. If I find a solution I will post it here

#209226
Nov 9, 2011 at 4:49pm

I found a post in the forums that helps. Basically, you have to use a thispatcher object and a message like this “script sendbox

“.

See the Gregory Taylor example and others at this discusion link.

http://cycling74.com/forums/topic.php?id=34503

#209227
Nov 26, 2011 at 11:06pm

At long last, a solution. Includes documentation with a diagram that better explains the problem. Perhaps someone can suggest a more elegant solution. Please?

Attachments:
  1. ToughNut.zip
#209228

You must be logged in to reply to this topic.