[PD] Is there an object like [opendirectory]?
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 ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Is there an object like [opendirectory]?
-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 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk4oNT0ACgkQkX2Xpv6ydvTwbgCgxpGkO/u1aXuXYYebgkn6Opm8 QkAAn0G21G7D7rnmmEjlbH3SJtceTAt3 =5VeS -END PGP SIGNATURE- smime.p7s Description: S/MIME Cryptographic Signature ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Is there an object like [opendirectory]?
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
Re: [PD] Is there an object like [opendirectory]?
Thanks, [dirpanel] was exactly what I was looking for! Ant On 21 July 2011 15:51, Mathieu Bouchard 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
Re: [PD] Is there an object like [opendirectory]?
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 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 ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Is there an object like [opendirectory]?
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 ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list