relativepath, conformpath strange probleme

Apr 9, 2013 at 3:09am

relativepath, conformpath strange probleme

hi everyone !

Well first i must precise i’m on PC and on the last version of max 6 available [6.1.1] , I’m trying to use [openfolder] and folder object and as I see in all max exemple they use ‘relativepath’ but! when I use for exemple this path ‘c:/tmp/’ that what [opendialog fold] output directly, passing by the [relativepath] object I get absolutly the same path, not seems really relative , a normal thing ? so I send it to the folder object before a [umenu] and then the folder object only show me 5 files , there is much than 100 files in that directory so I don’t understand, could someone can help me cause i feel stupid i’ve searched everywhere it’s seems I’m the only one


Apr 10, 2013 at 1:54am

bump no one could help me on this?

Apr 10, 2013 at 9:44am

Here is a patch with the issue explained, what did I’m doing wrong cause it’s seems a bit too simple for being a max bug

– Pasted Max Patch, click to expand. –
Apr 10, 2013 at 7:05pm

relativepath is only useful for things in the Max application path, I think. It doesn’t generate relative paths from where your patcher is stored. I always manage paths myself, using things like the path message to thispatcher, strippath, regexp, etc.

What are you trying to accomplish, exactly?

Apr 11, 2013 at 5:25am

Well that’s a long project for treating sequences of files, Png in my case, for recognize automatically differents sequences in a folder,

Example with a folder containing these files :

‘Banana – 1.png’
‘Banana – 2.png’
‘Banana – 3.png’
…. etc
‘Banana – 450.png’

The result expected is to got a little umenu containing ‘Apple’ and ‘Banana – ‘ after select this folder.but for the moment my main prob is that I can’t list all these file into a umenu by using this :

[Opendialog fold]

That doesn’t work and I don’t understand why.

If that’s not what it should be done for that there is at least an error in the references of MaxMsp :

that’s a bit boring because I’ve already done 75% of the work which aren’t the most easy and I block on this stupid stuff. :( heeelpp

Apr 11, 2013 at 7:34am

I guess I’m still not sure what your issue is. Here’s a snippet that does some basic path manipulation.

– Pasted Max Patch, click to expand. –
Apr 11, 2013 at 9:19am

Well so if I select a folder like my ‘c:tmp’ folder containing about 50 files, umenu show me only 2 files from it

Well I definitly think this is a maxmsp bug I’ve cause it still doesn’t work on my pc, I will contact them with the issue.

Thank you for you help

Apr 11, 2013 at 8:19pm

What have you set the folder object’s types to? Here’s a modification of the above patch that sets an empty types array with loadbang. On my system (Mac) it shows everything in a folder (including sub-folders which granted is sort of silly)

– Pasted Max Patch, click to expand. –
Apr 12, 2013 at 5:14am

pfff that was stupid, ok it works now, but why folder object don’t initialise with ‘types’ directly ? I was sure that was me -_- akward


You must be logged in to reply to this topic.