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...

Showing posts with label Edge Crease. Show all posts
Showing posts with label Edge Crease. Show all posts

May 23, 2011

Blender 2.5 Python 3.2 Selecting Creased Edges


import bpy

obj = bpy.context.active_object
bpy.ops.object.mode_set(mode='OBJECT')

for i in obj.data.edges:
if i.crease > 0.0:
i.select = True

bpy.ops.object.mode_set(mode='EDIT')
This is useful if for whatever reason you need to select all creased edges on an object that has a lot of geometry.

As a response to Enzymes query below, I posted additional examples of edge selection, which I think can prove to be useful to get people started Edge selection with criteria