OpenScad is often used to construct models for 3D printing, and it has a nice Syntax. But it is not Python, and when exporting objects from OpenScad into Blender all you get is a mess of polygons.
That's why I am working on "Vraag Construct" as part of "Blender Vraag", a JQuery-inspired higher-level API for scripting Blender. Vraag Construct allows you to create hierarchies of parented objects, setup materials, names and even boolean modifiers.
Because everything is "just" Blender data objects, you can debug your geometry directly in Blender, animate or even simulate the individual components.
This code removes the default cube, creates an empty object with 10 cubes rotated around it. The cubes are parented to the empty object.Code:V("#cube").remove() empty = V.construct().translate(up*3).empty() for p in empty.rotator(axis=up, n=10, radius=4): root.cube()
There is still a lot missing: Primitives like spheres, cones, monkeys, etc, scene and layer changes, object linking and various other things could be added.
If this sounds interesting, just try it out and let me know what you think of it!