#convert to polygon mesh #2010/3/20 detta scene = xshade.scene() dlg = xshade.create_dialog_with_uuid('36871E49-CCAD-4BC1-BCC4-1DCFDA2ECA00') id_selection = dlg.append_selection('Surface Subdivision/No subdivision/Coarse/Regular/Fine/Very Fine') dlg.set_value(id_selection,2) if dlg.ask(): div_level = dlg.get_value(id_selection) scene.inhibit_update() for sp in scene.active_shapes: try: sp.convert_to_polygon_mesh_with_subdivision_level(div_level) except: pass scene.allow_update()