Browse Source

Nuke auto circle camera

Tey're probably just a disaster waiting to happen. If you want a circle
camera, that's sufficiently advanced to require a new camera object.
Auto cameras are just a dumb helper.
pull/105/head
Adam Johnson 6 years ago
parent
commit
c91eb32939
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 2
      korman/properties/modifiers/region.py
  2. 10
      korman/ui/modifiers/region.py

2
korman/properties/modifiers/region.py

@ -70,8 +70,8 @@ class PlasmaCameraRegion(PlasmaModifierProperties):
camera_type = EnumProperty(name="Camera Type",
description="What kind of camera should be used?",
items=[("auto_follow", "Auto Follow Camera", "Automatically generated follow camera"),
("auto_circle", "Auto Circle Camera", "Automatically generated circle camera"),
("manual", "Manual Camera", "User specified camera object")],
default="manual",
options=set())
camera_object = PointerProperty(name="Camera",
description="Switches to this camera",

10
korman/ui/modifiers/region.py

@ -28,19 +28,11 @@ def camera_rgn(modifier, layout, context):
for i in cb:
layout.separator()
i(layout, cam_type, cam_props)
def _draw_circle_cam_props(layout, cam_type, props):
# needs a sublayout that we can deactivate because the ui_camera
# version assumes we are most definitely a circle camera...
col = layout.column()
col.active = cam_type == "circle"
col.label("Circle Camera:")
ui_camera.draw_circle_camera_props(col, props)
_draw_props(layout, (ui_camera.draw_camera_mode_props,
ui_camera.draw_camera_poa_props,
ui_camera.draw_camera_pos_props,
ui_camera.draw_camera_manipulation_props,
_draw_circle_cam_props))
ui_camera.draw_camera_manipulation_props))
def footstep(modifier, layout, context):
layout.prop(modifier, "bounds")

Loading…
Cancel
Save