So, I’m just learning OpenSCAD when Tony Buser leaves this comment:
This should be in the next version I believe, see: http://gitorious.org/openscad/openscad/commit/d479fca855688c92f4a9f72f4ec18d655c3b351d
Also, you can set variables on the command line like this:
http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_OpenSCAD_in_a_command_line_environment So you could set a variable to a random value in a shell script too.Unfortunately, since variables aren’t really variable in openscad, it’s often easier to write code in another language that writes out openscad code.
Okay, what the hell. “Variables aren’t really variables”? What does that mean? Yes, yes, OpenSCAD is written using a keyboard, but not really a keyboard. T, are you just messing with me or what? How the heck am I supposed to learn this language with this kind of nonsense?!
Amusingly, Tony is the second person to mention that sometimes it’s easier to use another language to write OpenSCAD. Kidding aside, I kinda get that. I use PHP to write custom javascript and MySQL all the time, since I sometimes have need for more dynamic-ness than those languages can accommodate. 1
- And, as we all know, I’m ever so dynamic [↩]