convert to tri's problem

got the old script for dual mesh but it is crashing now on the command for convert to tri’s
cause of beauty word ?

ob = bpy.context.active_object
bpy.ops.object.mode_set(mode = ‘EDIT’)
bpy.ops.mesh.select_mode(use_extend=False, use_expand=False, type=‘VERT’, action=‘TOGGLE’)
bpy.ops.mesh.select_all(action = ‘SELECT’)

bpy.ops.mesh.quads_convert_to_tris(use_beauty=True)

bpy.ops.mesh.select_all(action = ‘DESELECT’)

how to correct this?

thanks
happy bl

bpy.ops.mesh.quads_convert_to_tris(quad_method=‘BEAUTY’, ngon_method=‘BEAUTY’)

seem to work but script is not working !

have you work with the dual script
looks like it is not working anymore !

I check the API 2.68 and did not see this modification!
unless there is a new API site for a new latest one

thanks
happy bl

i’m using 2.74 and this work for me:

import bpy


ob = bpy.context.active_object
bpy.ops.object.mode_set(mode = 'EDIT')
bpy.ops.mesh.select_mode(use_extend=False, use_expand=False, type='VERT', action='TOGGLE')
bpy.ops.mesh.select_all(action = 'SELECT')


bpy.ops.mesh.quads_convert_to_tris(quad_method='BEAUTY', ngon_method='BEAUTY')


bpy.ops.mesh.select_all(action = 'DESELECT')

this represent only part of the script for dual mesh !

see script at site here

ir may be script is not 100 % working and still a WIP !

should be able to convert quad to hex shape!

thanks