saving file paths

sleeplesswaves's icon

I have a patch that uses "pattr" to save lots of parameters...
I use "opendialog fold" to set the file path and "folder" to list the .aif files that then get played by "sfplay~"
"pattr" won't connect / save a message with the contents of "opendialog fold".
Is there a way to save / store folder paths?
What I want to do is click on each pattern preset and have it load the appropriate folder.

Max Patch
Copy patch and select New From Clipboard in Max.

The context is that I have 18 tracks that randomly play audio files from 18 folders... After say "song 1" finishes... I want to click a new pattern and it would open then next 18 folders with different sound samples... Right now I'd have to click "open" and set the files path 18 times before the next event starts...

Many thanks!

pdelges's icon

You can use [pattr] to store a file path :

Max Patch
Copy patch and select New From Clipboard in Max.

sleeplesswaves's icon

@pdelges
THANK YOU!!! That was driving me nuts... :-)