I wrote a python script to create Camotics machines from
X3D .xhtml files for my local Workshop 88 Makerspace. I thought you
might like it.
I made one of our CNC machines in FreeCAD as an assembly and exported it as a .xhtml then the script does its thing.
Here is the script https://github.com/Workshop88/camotics_machine_maker
I tried to add as much documentation to the code and the github repo,
including instructions how to configure the .json and how to copy the
files to where Camotics can use them.
In addition to the code, I included the FreeCAD files, the exported
file, the output of the program on that file to verify it works for the
user, and a directory with instructions for how to configure the motion
vectors in the .json file.
I hope this works for you, at least until the next Camotics release.