3D Chart of Stars Within 20 Light Years of Earth Using Claude, Python and Blender

by matt392 in Circuits > Software

2 Views, 0 Favorites, 0 Comments

3D Chart of Stars Within 20 Light Years of Earth Using Claude, Python and Blender

Cropped-Blender-20-light-years.png
Blender-FrontOrthographic-Projection-20-light-years.png

Python code used in Blender to render a 3D image of some of the stars within 20 light years of Earth. Created using Claude.ai

Supplies

BlenderLogo.png
pythonlogo.png
  1. Python
  2. Blender 3D
  3. Python code

Python Code

FH23SEXM4VC0F90.png
Blender-FrontOrthographic-Projection-20-light-years.png
  1. Python code is attached
  2. Open Blender:
  3. File > New > General
  4. Go to Scripting tab
  5. Click on "New"
  6. Paste Python code into Scripting text editor
  7. ALT+P to run script
  8. Shift+F5 to switch to 3D Viewport
  9. On the Number Pad on your keyboard, hit "1" to rotate to front view
  10. CTRL+ALT+ NumPad "0" to align camera with current view
  11. On top right, find "Scene Collection"
  12. Click on "Collection"
  13. Scroll down to "Camera" > left click
  14. Hit "G" then "Y" and move mouse up and down to get the camera into the correct view
  15. Left click to lock it in
  16. F12 to render image
  17. After image is rendered, Image > Save > Name file > save as PNG