I’m building a rather complex openscad tool.
I have some high peak textures, that I would prefer to keep in separate files and include them in my project. They just contain a rather large array of floats.
I’ve tried to add them as .scad files - but the upload validator rejects it. Probably because they don’t contain modules or render anything.
Then I tried to be creative and use one of the other allowed file extensions. Then they passed upload, but openscad then failed when trying to use them. They are probably out of scope for the scad project/customiser and therefore cant be included.
Is this possible in any way? Preferably also in a way so that they don’t appear in the models download STL/Cad files section, as it would just confuse users.
That’s annoying. Getting close to 1000 lines of code, plus some large high heap texture mapping arrays, that make no sense adding directly in the main file.
Oh well, guess I gotta write a simple compiler, that merges everything and prepare it for upload.
Had the same problem and build a little workaround. I developed a python build script for deployment for makerworld. For local development I use includes/use and keep my script clean. My Deployment-Script just paste the code from the files which i included and generate a single file, which I upload to makerworld.
Thanks, that’s also the approach I ended up implementing And in the bundler I also add render logic to match the makerworld build plate naming conventions, it the model should use it