live.drop data won't populate pattrstorage slots - Max 9.1.1
I am wanting to use pattrstorage to save the names of files dropped into live.drop in max patches (not a M4L device). If I drop a file into live.drop I see the file name in live.drop's GUI and the file name is sent out the left outlet if it is a file in my searchpath, or the full path is sent if it is a file from outside the searchpath. Works as expected.
However when I look at pattrstorage's client window or try to store a preset, the data is not displayed or retained. If I open the clientwindow and type the file name (or full path) into the data slot and store a preset, the data is retained and recalled as expected. This also functions with typing the name of the file into the storage slots themselves in the storagewindow.
I have tried with pattr and autopattr. I have tried with a paired preset object and by sending the store message into pattrstorage. None of these storage methods populate pattrstorage with the data, only typing in the data in the clientwindow or storagewindow will populate pattrstorage. I have also found that after dropping a file and checking the Initial Enable box in the inspector that it is possible to save that file through normal pattrstorage interactions. That file then becomes the only data that pattrstorage will store through normal interactions.
Here is a simple example, does it work for you to save data in a preset (Initial Enable is deactivated, try enabling it after dropping something)? Do you know what I'm doing wrong?
live.drop doesn't contain the file path. It only outputs it. So you need to store the file path somewhere in order to save it. You can use [textedit] for that.
I would not use live.drop in first place.
definitelly not if you use autopattr.
it will add itself for no benefit.
It does not even support filetype filter.
I would use filedrop with filetypes set,
store paths into textedit or anything else also suitable to store symbols,
and maybe add umenu to display stored filenames (strippath),
by assigning slotnames to presets .
