pohlke.gui#

Defines the main UI panel and menu entries for the add-on

Classes#

Pohlke_PT_projectionspanel

Main UI panel for creating parallel cameras in the 3D View sidebar.

Functions#

add_menu_func(→ None)

Add the Pohlke Cameras entry to Blender's camera add menu.

register(→ None)

Register the panel and menu classes to Blender.

unregister(→ None)

Unregister the panel and menu classes from Blender.

Module Contents#

pohlke.gui.add_menu_func(self: bpy.types.Menu, context: bpy.types.Context) None[source]#

Add the Pohlke Cameras entry to Blender’s camera add menu.

Parameters#

selfbpy.types.Menu

The menu instance to which the entry is appended

contextbpy.types.Context

Blender context

class pohlke.gui.Pohlke_PT_projectionspanel[source]#

Bases: bpy.types.Panel

Main UI panel for creating parallel cameras in the 3D View sidebar.

This panel displays projection options and delegates the UI drawing to shared functions.

draw(context: bpy.types.Context) None[source]#

Draw the panel interface, thanks to pohlke.utils.ui_shared.draw_create_cam_content().

Parameters#

contextbpy.types.Context

Blender context containing scene and UI state

pohlke.gui.register() None[source]#

Register the panel and menu classes to Blender.

Also appends the custom menu entry to the VIEW3D camera add menu.

pohlke.gui.unregister() None[source]#

Unregister the panel and menu classes from Blender.

Also removes the custom menu entry from the VIEW3D camera add menu.