Part of supporting Mark's dynamic preview is having the Assembler.scad generate JSON like this:
Mark Moissette 11:05 AM
{
"assembly": {
"name":"raptor-hand-assembled",
"children":[
{
"name":"Palm",
"partId":14,
"rotation":[10,0,0]
},
{
"name":"Thumb",
"partNumber":0,
"position":[10,0,0],
"children":[]
}
]
},
}
Basically, outputting the list of STL files to import, the position, translation and rotation.