2 Scripts together!

james8200's icon

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

gwsounddsg's icon

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