Someone
public python v1 · immutableimport Blenderfrom Blender import *Window.WaitCursor(1)scn = Scene.GetCurrent()ob = scn.getActiveObject()if not ob or ob.getType() != 'Mesh': Draw.PupMenu('Error, no active mesh object, aborting.')scn.update()del scnWindow.Redraw(Window.Types.VIEW3D)Window.WaitCursor(0)