I was hopeful to get [file which] to give me the path of [media/] but no luck.
It should allow you to get the path of [media/mysound.wav] though.
Le mar. 11 janv. 2022 à 14:41, Pierre Alexandre Tremblay tremblap@gmail.com a écrit :
Thanks Roman for the fabulous answer.
If 'media' lies near the patch
It doesn’t actually. It seems to work from wherever I am on my machine.
TLDR: Unlike many other file accessing objects like [soundfile], [reasf~], [textfile], etc. [file] doesn't use search paths¹.
With that footnote, I was hopeful to get [file which] to give me the path of [media/] but no luck.
I’ve also tried to find a way to get [dir] from pdcontrol… I wondered if there was a way to get the path to a given object help, like in SuperCollider
FluidBufAmpGate.class.filenameSymbol
Anyway. Good to know that it is not me. Thanks again for the reply._______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list