You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
551 B
1 lines
551 B
outlets = 2;
//Bogus func just for testing
function bang() {
p = "Hi";
outlet(0,p);
}
function thispat() {
outlet(0,this.patcher.filepath);
}
function thisfile() {
p = this.patcher.parentpatcher;
outlet(0,p.filepath);
}
function parentfile() {
p = this.patcher.parentpatcher;
p = p.parentpatcher;
if (p) {
outlet(0,p.filepath);
} else {
outlet(1,"bang");
}
}
function toplevelfile() {
p = this.patcher.parentpatcher;
oldp = p;
while (p) {
oldp = p;
p = p.parentpatcher
}
outlet(0,oldp.filepath);
}
|