Blender Newbie
Smooth en python?
Buenas, ¿sabe alguien como aplicar Smooth a un objeto? Estaba probando así.
Código:
import Blender. From Blender import*. From math import*. Escena = scene. Getcurrent(). Malla = Mesh. Primitives. Uv sphere (16.0,16.0,2). Esfera = escena, objects, new(malla, esfera). Malla, smooth().
Pero no funciona. También estaba probando por enredar con la clase nmesh y el método setmaxsmoothangle, pero tampoco veo que funcione.
No encuentro nada por internet, seguiré buscando, lo más parecido es este script para hacer normal smooth, pero no es lo que busco (esto se parece más a un Subsurf). https://www.alienhelpdesk.com/python_…/normal_smooth. Gracias de antemano.
Blender Newbie
Smooth en python?
From Blender import*.
From math import*.
Escena = scene. Getcurrent().
Malla = Mesh. Primitives. Uv sphere (16.0,16.0,2).
Esfera = escena, objects, new(malla, esfera).
Malla, smooth().
Sourcemeshname =esfera, getdata (name_only=true).
Me = Mesh. Get(sourcemeshname) # Fetch the Mesh, by object name, for this object.
Faces = me, Faces # get the Faces.
For f in Faces: # loop th rouge them tf, smooth=1 # Smooth each face.
Agradecimientos – 1 Gracias
Enfermoelaputacabeza
Smooth en python?
Blender Newbie