Featured post

new redirect for blender.org bpy docs.

http://www.blender.org/api/blender_python_api_current/ As of 10/11 november 2015 we can now link to the current api docs and not be worr...

July 11, 2012

randomize geometry

This snippet randomizes the z value of all vertices by a given amount. (be in object mode, with a mesh object selected)
import bpy
import random

verts = bpy.context.active_object.data.vertices

for i in verts:
    i.co.z *= random.uniform(0.7, 1.3) 
        
In combination with the separation script from a previous post you can get some neat effects, maybe this will plant some seeds

No comments:

Post a Comment

Please use Blender.StackExchange.com for python scripting questions unrelated to this post.