Forums > MaxMSP

auto connect objects when deleting the one in between? or empty object?

June 28, 2013 | 7:26 am

situation:

bang->delay 100->bang

i wanna delete the delay without having to reconnect the two bangs together.

can this be done? or maybe paste replace with an ‘empty object’ or something?

otherwise i’m going to have to rewire more than 300 objects in about 100 sub patches..

i’d like to know if there’s an easier way to accomplish this…


June 28, 2013 | 7:30 am

i could always paste replace all the delays with bangs, but then i’d have about 300 unnecessary bangs in my patch…


June 28, 2013 | 7:42 am

i know . its not the coolest situation . you can do it with thispatcher . wait few minutes i will post you a little starter and description


June 28, 2013 | 8:06 am
– Pasted Max Patch, click to expand. –

June 28, 2013 | 8:11 am

what it does :

1 . thispatcher is searching for BUTTONS to assign scripting name to them (unfortunatelly the order in which uve created these objects is crucial in here , also if there will be additional BUTTON you will meet some problems ) .

2 . thispatcher is searching for delays (previous creation order is crucial) and assign scripting name to them .

3 . thispatcher deletes your delays .
4 . thispatcher connects your buttons


June 28, 2013 | 10:09 am

You could use an empty subpatcher (ie. input connected to output) to paste replace the delays and then de-encapsulate where both can be done with key commands.


June 28, 2013 | 11:02 am

You can do it with scripting, but in a lot of cases you just need to reconnect manually. there’s no "delete object in chain and keep connections" option.

Max Toolbox could help you a lot here. If your bangs are lined up, you can connect any number of them to those below it by selecting and using a single keystroke. voila!


June 28, 2013 | 11:25 am

BROC’s solution was spot on! thanks so much!

i created a "p temp" sub patcher with an inlet and outlet inside which were connected.

Then i used cmd-f to select all my delays at once, paste replaced those with "p temp" and then de-encapsulated them.

hmm on second thought that only works for the delays in the main patch, i can’t select all delays in sub patches at the same time, or can i?



June 28, 2013 | 11:35 am

oh that toolbox is a really nice addition! thanks


June 28, 2013 | 3:08 pm

That was a cool idea from Broc as well…never thought of that!


June 28, 2013 | 3:08 pm

Selecting objects in subpatches? Probably only with javascript.



Nat
June 29, 2013 | 7:46 am

That’s a nice idea, I’ll put it on the todo list for the Max ToolBox!


January 22, 2014 | 12:57 pm

I’ll be taking a look at the Max Toolbox later today..

I really wish blank objects were deleted if empty. Can’t count the minutes wasted having to delete boxes I didn’t need.


Viewing 14 posts - 1 through 14 (of 14 total)