Hi all,
I am searshing a way to store data in my abstractions and i wanted to know if there is a way to get the parent patch name (I want to store data with pool and i'd like to save data whith the parent patch name...) More generally, i wonder if there is a way to deal whith files in pd (create a directory for example).
Thanks
guillaume wrote:
More generally, i wonder if there is a way to deal whith files in pd (create a directory for example).
Try the [shell] object in Guenter's ggee external library.
d.
I read:
guillaume wrote:
More generally, i wonder if there is a way to deal whith files in pd (create a directory for example).
Try the [shell] object in Guenter's ggee external library.
don't get me wrong - I _love_ [shell] - but for a more cross-platform way of dealing with it + a general approach to file io you might want to look at thomas' py/pyext stuff -> http://www.parasitaere-kapazitaeten.net/ext/py/
regards,
x
Hallo, guillaume hat gesagt: // guillaume wrote:
I am searshing a way to store data in my abstractions and i wanted to know if there is a way to get the parent patch name (I want to store data with pool and i'd like to save data whith the parent patch name...)
What happens if you move or rename your parent patch? Will your data become invalid?
Frank Barknecht _ ______footils.org__
guillaume wrote:
Hi all,
I am searshing a way to store data in my abstractions and i wanted to know if there is a way to get the parent patch name (I want to store data with pool and i'd like to save data whith the parent patch name...) More generally, i wonder if there is a way to deal whith files in pd (create a directory for example).
Thanks
probably best to pass it as a variable. one technique is to pass a $0 (patch's unique identifier) to the abstraction, which the abstraction refers to as it's first arg ($1). i don't know of any way to get the patches string name specifically save for some tcl hackery?
Frank Barknecht wrote:
Hallo, eric skogen hat gesagt: // eric skogen wrote:
i don't know of any way to get the patches string name specifically save for some tcl hackery?
I also wonder, what use this could have. I never needed it in 4 years of Pd patching.
Ciao
you're right. i can't think of any spectacular use for it either.
there are some commands you can send to a subpatch by name. for example, if your subpatch is [pd mySubpatch] you can reference it as pd-mySubpatch. and a [;pd-mySubpatch vis 1( message from the parent would display it.