[thatpatcher]

2K's icon

Hi, I don't think this is possible but will ask anyway. Is there something like [thatpatcher]?? I want to create some [bpatchers] on the flow in my main patch from another [bpatcher] without having [thispatcher] in the main one....Was clear enough? The thing is I don't wanna see any max object on my main patch, just my bpatchers in Unlocked mode.

Thanks!

Floating Point's icon

I think you could probably do it using javascript from within a bpatcher to its parent-- sorry i cant be more forthcoming, as I haven't used javascript much in max but i think it would most likely be possible

2K's icon

Actually js was the solution, thanks.

function bang() {
    //create new bpatcher in the parentpatcher
    var myobj = this.patcher.parentpatcher.newobject("bpatcher");
        myobj.rect = [300,300,400,400];
        //load a patch into the bpatcher
        myobj.replace("yourpatch.maxpat");
}