live.drop provides file location. what's next? how do i get file content ?

Dec 19, 2012 at 12:14pm

live.drop provides file location. what's next? how do i get file content ?

Hello. live.drop is a very cool drag-and-drop utility that i’d like to use with my components.
how do i get from the file location that it provides, in my case, for example: “osx:/file/path” to the actual content of the file ?
i can create an mxj patch that splits the first ‘:’, adds /Volumes/ before it and reads the file and return it’s content, the question is, is there a device that already that all of that. i’m guessing there is and i’m just missing something.

i’m just trying to read a simple text file with numbers and to paste it to a matrixcntrl.

any information regarding the issue would be greatly appreciated.

thank you !
kfir

#65664
Dec 19, 2012 at 10:01pm

especially with matrixcntrl things are not so straight forward. here a suggestion:

– Pasted Max Patch, click to expand. –
#236517
Dec 20, 2012 at 6:09am

thank you for your help. i’m trying to understand your patcher. you wrote to drop a matrixctrl data file here. is there a specific format that needed to be use ? in my case it’s a file a file that contains 8 rows and 8 columns of numbers and unfortunately i see no changes when i load the file.
it seems like live.drop doesn’t show that files are loaded at all.

#236518
Dec 20, 2012 at 9:18pm

you need to create such a file first by setting some connections in the matrixcontrol object, than you hit the ‘write’ message and save these settings. on a mac this results in a extension less file that you can drop on the dropfile object to restore the settings.
i just tested it again, ( max 6.1) it works fine.
if you need a 8×8 matrix, simply change the properties of the matrixcontrol object in its inspector. the rest can stay the same.

#236519

You must be logged in to reply to this topic.