I'm using the [playlist] object and I want to be able to load a directory by using the filebrowser dialogue. Usually you would do this by sending [location /path/to/directory ( to [playlist] but I want to do it dynamically. Does an object like [opedirectory] exist? I've tried sending [openpanel] to [location $1 ( but it expects a filename
Thanks
Ant
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2011-07-21 16:01, Antonio Roberts wrote:
I'm using the [playlist] object and I want to be able to load a directory by using the filebrowser dialogue. Usually you would do this by sending [location /path/to/directory ( to [playlist] but I want to do it dynamically. Does an object like [opedirectory] exist? I've tried sending [openpanel] to [location $1 ( but it expects a filename
[openpanel] has not method for 'location', but it has a method for 'symbol' which sets the directory to start. e.g. [symbol /tmp( | [openpanel]
will always open in "/tmp/" (if that exists)
fgasdr IOhannes
On Thu, 21 Jul 2011, IOhannes m zmoelnig wrote:
[openpanel] has not method for 'location', but it has a method for 'symbol' which sets the directory to start. e.g. [symbol /tmp( | [openpanel]
will always open in "/tmp/" (if that exists)
But [openpanel] is not made for selecting a folder, it is made for selecting files (non-folder files).
That's the difference between tk_getOpenFile and tk_chooseDirectory.
grep -r tk_chooseDirectory pd-svn
matches (2 in total) : Benjamin Bogart's abstractions/pixelTANGO/abstractions/dirpanel.pd Thomas-O. Fredericks' externals/tof/src/folderpanel.c
looks like a Montréal-only feature ! ;)
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC
Thanks, [dirpanel] was exactly what I was looking for!
Ant
On 21 July 2011 15:51, Mathieu Bouchard matju@artengine.ca wrote:
On Thu, 21 Jul 2011, IOhannes m zmoelnig wrote:
[openpanel] has not method for 'location', but it has a method for 'symbol' which sets the directory to start. e.g. [symbol /tmp( | [openpanel]
will always open in "/tmp/" (if that exists)
But [openpanel] is not made for selecting a folder, it is made for selecting files (non-folder files).
That's the difference between tk_getOpenFile and tk_chooseDirectory.
grep -r tk_chooseDirectory pd-svn
matches (2 in total) : Benjamin Bogart's abstractions/pixelTANGO/abstractions/dirpanel.pd Thomas-O. Fredericks' externals/tof/src/folderpanel.c
looks like a Montréal-only feature ! ;)
_______________________________________________________________________ | Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
tof/folderpanel is probably better maintained, but I've never used
dirpanel.
.hc
On Jul 21, 2011, at 11:25 AM, Antonio Roberts wrote:
Thanks, [dirpanel] was exactly what I was looking for!
Ant
On 21 July 2011 15:51, Mathieu Bouchard matju@artengine.ca wrote:
On Thu, 21 Jul 2011, IOhannes m zmoelnig wrote:
[openpanel] has not method for 'location', but it has a method for 'symbol' which sets the directory to start. e.g. [symbol /tmp( | [openpanel]
will always open in "/tmp/" (if that exists)
But [openpanel] is not made for selecting a folder, it is made for
selecting files (non-folder files).That's the difference between tk_getOpenFile and tk_chooseDirectory.
grep -r tk_chooseDirectory pd-svn
matches (2 in total) : Benjamin Bogart's abstractions/pixelTANGO/abstractions/dirpanel.pd Thomas-O. Fredericks' externals/tof/src/folderpanel.c
looks like a Montréal-only feature ! ;)
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray,
Montréal, QC _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Using ReBirth is like trying to play an 808 with a long stick. - David Zicarelli
On Thu, 21 Jul 2011, Hans-Christoph Steiner wrote:
tof/folderpanel is probably better maintained, but I've never used dirpanel.
TOF told me that he stopped using pd in late 2010. That means that the tof library and the mtl library are more or less orphaned... not mentioning the former pdmtl (v1) library.
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC