I would like to automate the generation of images of the 3D model of a PCB. Currently I do that manually in this way:
Open a KiCad PCB.
Click “View→3D Viewer”.
Click and drag with the mouse to rotate the PCB into the desired angle.
Click on “File→Export Current View as PNG”.
Is it possible to do this using kicad-cli? Is there any other tool that can do this? Like exporting the 3D model using kicad-cli export and then using something else like FreeCAD?
Another issue I see is that the “user comments” and some other non-physical layers are visible in the render, when using --side bottom.
Text variables in the silkscreen work partially. My own variables, e.g. ${MY_VARIABLE} is displayed fine, however ${PROJECTNAME} is not shown, it prints an empty string there "".
Let me know if there is a better way of reporting this, like somewhere in GitHub or GitLab or wherever.
Where are the plot options defined? In the KiCad GUI or somewhere else? I only see them when going to the “plot” dialog, but don’t see how to save them.