def execute(self, context): bpy.context.scene.tool_settings.snap_element=self.variable return {'FINISHED'} #Menu Snap Element