Stuff
public ini v1 · immutableimport Blendertex = Blender.Texture.Get("Tex")texvec = tex.getPytexCoords()m = Blender.NMesh.GetRaw('Cube')def int_func(tex, coords): intensity = Blender.Noise.turbulence(coords, 3, 0) vv = Blender.Mathutils.Vector(coords) vv.x = vv.x vv.y = vv.y -2 vv.z = vv.z -2 small = 10000 for v in m.verts: small = min(small, (vv - v.co).length) small *= abs(small) tex.setPytexIntensity(small*2) int_func(tex, texvec)