Export M4L device with html GUI?

Jose Bedoya's icon

Hello everyone, I hope you are very well. I have the following problem, I hope you can help me to solve it:

I am creating a M4L device, which, a part of its user interface is created using HTML and displayed with the jweb component. This component reads a local .html file in which is the code of the interface.

However, when I export the project as M4L device and transfer the .amxd file to another pc to open it with ableton, the jweb component fails to find the .html file. But when, from ableton, I open the patch editor and unfreeze it, max writes the .html file and finally, the jweb component manages to find it and display the created interface.

Is there any way that, automatically, when the end user loads the device to Ableton, it writes to the .html file, so that he doesn't have to do the whole process of unfreezing and reloading the device after that?

I am also getting other suggestions on how I could display user interface created in HTML.

Thank you in advance

Joshua Kit Clayton's icon

You'll want to create an embedded search path folder like described in the node for max documentation. This will unpack the embedded search path folder to a temporary folder where it can be loaded by jweb. Don't have the folder managed in your project directly, but only as a search path.

Hope this helps!