Blender Tutorial - How to import a python script

Опубликовано: 27 Июль 2026
на канале: Blender Study
12,330
62

Please like and subscribe, If you have enjoyed watching this tutorial.

Thank you for watching.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Here is Blender's official tutorial playlist on Youtube.

   • First Steps - Blender 2.80 Fundamentals  

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Please use the following tutorial to copy my Blender settings for Open Image Denoise, Filmic, Curves, transparent background and so on.

   • 2.81 denoise startup setup and more - Blen...  

The python script used in this tutorial can be found here.
https://blender.stackexchange.com/que...

----------
Script
----------

import bpy
import bmesh
import math

n = 100 # number of points
c = 0.1 # scale factor

mesh = bpy.data.meshes.new(name="Spiral")
bm = bmesh.new()

for i in range(0, n):
theta = i * math.radians(137.5)
r = c * math.sqrt(i)
bm.verts.new((math.cos(theta) * r, math.sin(theta) * r, 0.0))

bm.to_mesh(mesh)
mesh.update()

from bpy_extras import object_utils
object_utils.object_data_add(bpy.context, mesh)