Hello,
I would like to know if there is a way to change the directory wich is displayed in the title bar after the name of a patch.
There are some opcodes that take this information for disk output and sometimes you don't want that the datas go to this dir.
On another hand, how to retrieve this information ? I would like to automaticly get the dir of a main patch to send it to my various saving mechanisms.
Best regards,
Linium
Hmm, there ought to be a "default saving directory" which could be set differently from the patch's directory. (I don't think it would be good to go changing that' what if you wanted to save the patch itself?)
In a external object, you can call canvas_getcurrent() in the "new" routine, then at any point call "canvas_getdir()" to get teh directory the patch is in (even if it has changed via a save-as.)
But to save to another directory, the only thing I can suggest is specifying the complete pathname...
cheers Miller
On Wed, Apr 11, 2001 at 04:48:27PM +0200, Linium wrote:
Hello,
I would like to know if there is a way to change the directory wich is displayed in the title bar after the name of a patch.
There are some opcodes that take this information for disk output and sometimes you don't want that the datas go to this dir.
On another hand, how to retrieve this information ? I would like to automaticly get the dir of a main patch to send it to my various saving mechanisms.
Best regards,
Linium
If you are using Linux, there's a 'getenv.pd_linux' external in motex_1_1_2.tar.gz that can fetch the value of an environment variable eg. containing a path - so you can feed this into makefilename etc. See http://www.reverberant.com/Pd Hope this helps, iain
Iain Mott phone: +61 3 9639 2959 email: mott@reverberant.com http://www.reverberant.com
-----Original Message----- From: Linium [mailto:intent@club-internet.fr] Sent: Thursday, 12 April 2001 12:48 AM To: pd-list@iem.kug.ac.at Subject: Changing the dir of a patch
Hello,
I would like to know if there is a way to change the directory wich is displayed in the title bar after the name of a patch.
There are some opcodes that take this information for disk output and sometimes you don't want that the datas go to this dir.
On another hand, how to retrieve this information ? I would like to automaticly get the dir of a main patch to send it to my various saving mechanisms.
Best regards,
Linium