3D Printing: OpenScad Scripting the Periodic Table

Sdílet
Vložit
  • čas přidán 13. 09. 2024

Komentáře • 10

  • @studiohanson
    @studiohanson Před 2 lety

    This is a nice example of SCAD scripting idea. Good suggestions. I need to dive deeper, as I like the flexibility that customization brings to models-your example and others that are out there. Good video! I appreciate the recent cadence too. Very informative for a fellow Prusa Mini owner.
    By the way, you helped me fix my jamming hot end almost a year ago through removal and adjustment. . . thanks for that! Working great ever since.

    • @iqless
      @iqless  Před 2 lety

      There is a lot of possibilities with scripting.
      And there may be even more using the python library (which I have not yet touched)
      :)

  • @YigalBZ
    @YigalBZ Před rokem

    Nice video, thank you. I think that scripting is a key factor for a process of a design from an idea to an actual print. Just imagine you could also slice it after the STL. I opened a feature request for PruceSlicer for an API, so it will allow to command line slice it. I got a laconic response that this is not on their roadmap.

  • @ozzloy
    @ozzloy Před 2 lety

    neat!

    • @iqless
      @iqless  Před 2 lety

      Hey Ozzloy... I am very interested in this python module.
      Don't know when I will have the time to fiddle with it but I am interested.

  • @loclhst
    @loclhst Před 2 lety

    You might be able to do all of this directly in openscad. You can use an array and map your atomic number to Its abbreviation. Then call openscad from cli and bypass the external script entirely. At least in theory, I haven't messed with that later part yet myself.

    • @iqless
      @iqless  Před 2 lety

      hmmm... Can you have openscad render and save itself within itself?

    • @loclhst
      @loclhst Před 2 lety

      @@iqless I forked your sarcasm scad file and uploaded to my own for what I was thinking of. Since I cannot issue a pull request on a gist, you should be able to see it under your scad file forked section.

    • @loclhst
      @loclhst Před 2 lety

      @@iqless so after being un-tired and re-reading this, i realized i was talking about something else entirely than what you were. (see my previous reply). so if you were to mix the multimentional array from my modification, you could at least one liner the openscad command. with for each in $(seq 1 118); do openscad -o atomic_$each.stl -D "element_atomic_number_list=[$each]" periodic_table_magnet_sarcasm.scad; done.

    • @YigalBZ
      @YigalBZ Před rokem +1

      @@loclhst Even if OpenSCAD can iterate the list and create STLs out of it, it makes more sense to run the script from outside. The power of Python (or other scripting languages) will always bring additional value over OpenSCAD, which is not a "real programming language". For example, variables values can't change in runtime.,