User
Write something
Coffee Hangout is happening in 4 days
Circle and Sphere Packing
I’ve yet to figure out how to go about turning my main Charge field atomic modeling project into a molecule maker, then into an Addon. In the meantime, here’s some proof of life, a quick and easy Blender project, with AI help of course. Circle and sphere Packing. Still, it took me a few hours to request and understand it, make notes and changes, then find and correct a bad initial y_offset value suggested in the sphere packing section. 1. A 2d hexagonal close packed array of overlapping circles, 7 circles; 2. A grid of circles with variable rows and columns; 3. 3d hexagonal close packed spheres consisting of two alternating layers. First un-comment (remove) the pair of triple ( ''' ) quotes at the top and bottom of the section you wish to mess with. Here’s the AI instructions for creating the Blender python SG grid. AI wrote. QUOTE How to use the script Open the Scripting Workspace: Open Blender and switch to the Scripting workspace via the tabs at the top. Create a New Script: In the text editor window, click the New button. Paste the Code: Copy the code above and paste it into the editor. Adjust Settings (Optional): Change the variables at the top of the script (circles_across, rows_down, circle_radius, overlap_factor) to get your desired grid. Run the Script: Click the Run Script button (the "play" icon) in the text editor header. How it works Variable Control: The top section provides a clear way to control the grid's dimensions and overlap. Clear Scene: The script first deletes any old circles from previous runs to ensure a clean slate. This is a best practice for re-running scripts. Hexagonal Spacing: The core of the hexagonal grid is in the x_spacing and y_spacing calculations. A hexagon's geometry dictates that the vertical distance between row centers is a multiple of $\sqrt{3}/2$. Row Offset: A hexagonal pattern requires every other row to be horizontally shifted. The if row % 2 == 1: statement handles this by adding x_offset to odd-numbered rows.
Circle and Sphere Packing
Beginners
Any beginners want an accountability partner? Let me know.
2
0
IGES file import add-on
I finally got my add-on working and packaged; I successfully installed it on another computer. It was a tricky first add-on, and I really appreciate the help I've received here. Huge thanks to @Victor Stepanov! I'll put it up on Github and make it available on Gumroad and Superhive for anyone who wants it off the shelf.
Completed “1. Welcome to Part 1 - Getting Started”
That was a great introduction to blender scripting. The provided scripts will be great study material. Off to a fun start. Many thanks, Victor
Part 2 Capstone project, a Charge field Addon
Here’s my Part 2 Capstone project. Using a charge field ‘Mesh Group’ ui panel to add a BR, Bottom Right electron-proton ep pair to the cursor position at (0,0,0). The other eight proton groups show 4, two-proton stacks of vertically aligned ep’s in valid, bound di-hydrogen configurations. Since my Part 1 Capstone, I’ve added main spiral charge intakes at each proton’s electron vacant spin axis pole. The spirals (1 or 2) between the vertical protons create the bond between the two protons; and 2. Proton equatorial emissions, the flat cylinder, indicating outwardly directed photons which create repulsion that would quickly separate the configuration shown sideways - the four di_H’s are positioned too closely together (side-to-side) for this configuration to occur naturally. Lest ye think I put too much effort into this ui panel, yeah you’re right, but its just a start. The panel will also need to be able to select from any allowed 1-6 proton stacks, and then atoms, ... .
Part 2 Capstone project, a Charge field Addon
1-9 of 9
CG Python Academy (Free)
skool.com/cgpython
3D artists learning Blender Python.
Leaderboard (30-day)
Powered by