I would like to ask for advice here.
I am running an animation in FreeCAD (moving/rotating parts in the assembly) and want to create a gif animation. The way I do it is to make a screenshot of FreeCAD active view at every step in animation.
Code: Select all
FreeCADGui.activeDocument().activeView().saveImage('Image Path'+ f"{i:04d}.png",1000,1000,'White')
(?) So, my question is whether I can add some text notes on these images before/while saving them in FreeCAD? I want to add some changeable variables, like degrees of rotation, timing, transition for some of the parts; therefore batch editing of these images after they are already saved seems to be complicated. The only way I see how to do it is to integrate these changeable variables into the image file names and then post-process them via some kind of python script. But this is obviously far from being an elegant solution .
(?) Follow-up question. If I have several FreeCAD files open (have several views) is it possible to capture the image from all of them at the same and not only from the activeView ?
Thanks!