Our great sponsors
-
BOSL2
The Belfry OpenScad Library, v2.0. An OpenSCAD library of shapes, masks, and manipulators to make working with OpenSCAD easier. BETA
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
The children() and $children are currently syntactical only, and attempts to break apart a for loop like this resulted in an unsolved hard problem which appears at present to be fundamentally not computable. It appears something deeper about the language would have to be changed to make this possible in the general case. See: https://github.com/openscad/openscad/issues/3143
Have you looked at BOSL2? I wonder if attachments could offer some of what you're looking for. Fair warning: the library is pretty complex, but I think it adds a lot o useful and consistent ways of working with OpenSCAD.