def edge_split( context):
bpy.ops.object.select_all(action='DESELECT')
list_objects = context.scene.objects
for obj in list_objects:
if obj.type == 'MESH':
obj_name = obj.name
bpy.ops.object.select_name(name=obj_name)
if (obj.use_auto_smooth == True):
split_angle = obj.auto_smooth_angle
if ((degrees(split_angle) > 29.999999) and (degrees(split_angle) < 80.000001 ) ):
bpy.ops.object.modifier_add( type='EDGE_SPLIT')
for mod in obj.modifiers:
if mod.type=='EDGE_SPLIT':
mod.split_angle = split_angle
majic79 wrote in Tue Feb 07, 2012 2:30 pm:439Tiger: I'll have a look at it this week - might be a little delay as I'm prepping for an event at the weekend and don't have much time for myself between now and then, it will get looked at!
Users browsing this forum: No registered users and 6 guests