Newer
Older
# SPDX-License-Identifier: GPL-2.0-or-later
import bpy
class GP_OT_camera_flip_x(bpy.types.Operator):
bl_idname = "gp.camera_flip_x"
bl_label = "Camera Flip X"
bl_description = "Invert active camera scale.x to flip view horizontally"
bl_options = {"REGISTER"}
@classmethod
def poll(cls, context):
return context.area.type == 'VIEW_3D' \
and context.space_data.region_3d.view_perspective == 'CAMERA'