HI
I’m trying to find a way to modify the Harmony Save Workfile function.
The goal is to reduce the file size.
I need to complete two tasks on Workfile Save before it gets zipped and uploaded.
1st.) Clean up (empty) the “frames” folder in the Harmony project structure. Goal – Remove the preview TGAs generated from OpenGL preview.
2nd.) Keeping External Linked Palettes.
The save workfile will convert them to local and copy all the textures to the scene structure. Into the “palette-library” folder and changing the “PALETTE_LIST” file from our shared locations path to the local ones.
We have lots of bitmap textures, unnecessarily adding to the scene size on save and load.
In my simple mind, a solution would be to clean up the palette-library folder and simply replace the “PALETTE_LIST” file with one that has the correct paths. After the .xstage file got saved but before it gets zipped and uploaded.
As I’m not a coder, I tried to help myself with AI assistance.
It suggested implementing my functions directly in the Harmony addon.
Putting it in between the function which saves the .xstage file and before the zip_and_move function gets called.
I’m not sure if I should trust that, or are there maybe other better options to achieve that?
Any tips will help. Thanks