Thanks for all your responses!
To give you an idea of my use case, I’m adapting a synfig animation for many different websites and languages and I eventually want people to be able to make basic changes (text, colour etc) without needing my intervention, and without having to know anything about animation or synfig, and without having to install software on their own computer. That is, they can do all these things, but they don’t have to.
I would like to get into python as it seems like it will be more useful and flexible for me in the long term than bash alone, as its also useful for blender and krita, and if there’s already some kind of setup for python scripting in synfig, then great!
The current state of experimentation:
So far, I have been doing very simple experiments with bash scripts - see this folder. I am new to this so don’t judge my clumsy scripting too harshly
The script ‘honkforreform-Client’ is run by the user, and sends their translation of the words ‘HONK FOR REFORM’ to the server where hupen.sif sits, with synfig and ffmpeg installed. On the server, the ‘honkforreform-Server’ script creates a copy of hupen.sif, changes the words, renders a PNG sequence, wraps the PNGs into a video file, and deletes the PNGS. (I didn’t use the synfig ffmpeg export option because I want the possibility of having an alpha channel sometimes, and this was the only way that I could get a video+alpha out of synfig).
honkforreform-Client then secure copies the completed video file from the server to the user’s machine.
I don’t really know what I’m doing, so any constructive suggestions would be great!
Exported Value Nodes
caryoscelus, just for clarification on your suggestion:
To adapt the video to work with (for example) an 8-colour palette, I would create 8 exported value nodes, one for each colour, and then link every object in the animation to the most appropriate of those nodes for that object.
Then for a different version of the animation, I would simply need to change the colour of Colour A, Colour B, etc, and the entire animation would be updated. Right?
That sounds like it will work a lot better and more flexibly than my current method, which is to use sed to replace existing RGB values with new values.
Colour (somewhat related)
Two things I can’t work out about colour in synfig are
a) why synfig’s hex codes are completely different to browsers, inkscape, and everything else,
and b) how should I best take a hex code and convert it to the RGB values seen within a .sif file?
Any ideas?