Forums > MaxMSP

2 Scripts together!

May 1, 2011 | 3:59 pm

Is it possible to create a new object (bpatcher) and connect it at the same time to another object, with a unique click?
Thanks a lot
James


May 2, 2011 | 12:07 am

Yes, its all about scripting names (attribute: @varname). You have to give the new bpatcher a scripting name on creation and the object its connecting to must have a scripting name as well. Then in the same message box you separate scripts with commas:

script newobj bpatcher @varname foo, script connect foo 0 foo2 0

Check out the .maxhelp patch for thispatcher, there is a whole section on creating and connecting.

Cheers
GW


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