pohlke.properties#

Defines the PropertyGroup storing projection settings and update callbacks for the Parallel Cameras add-on.

Classes#

Pohlke_PT_CameraProperties

Property group storing projection parameters for the parallel cameras.

Functions#

camera_type_update(→ None)

Update callback triggered when projection type or preset changes, it calls pohlke.utils.helpers.camera_type_updated().

camera_alpha_updated(→ None)

Update callback triggered when alpha value changes, it calls pohlke.utils.helpers.camera_attributes_updated()

camera_beta_updated(→ None)

Update callback triggered when beta value changes, it calls pohlke.utils.helpers.camera_attributes_updated()

camera_z_value_updated(→ None)

Update callback triggered when z value changes.

register(→ None)

Register the property group and attach it to the Scene type.

unregister(→ None)

Unregister the property group and remove it from the Scene type.

Module Contents#

pohlke.properties.camera_type_update(self: bpy.types.PropertyGroup, context: bpy.types.Context) None[source]#

Update callback triggered when projection type or preset changes, it calls pohlke.utils.helpers.camera_type_updated().

Parameters#

selfbpy.types.PropertyGroup

Property group instance

contextbpy.types.Context

Blender context

pohlke.properties.camera_alpha_updated(self: bpy.types.PropertyGroup, context: bpy.types.Context) None[source]#

Update callback triggered when alpha value changes, it calls pohlke.utils.helpers.camera_attributes_updated()

Parameters#

selfbpy.types.PropertyGroup

Property group instance

contextbpy.types.Context

Blender context

pohlke.properties.camera_beta_updated(self: bpy.types.PropertyGroup, context: bpy.types.Context) None[source]#

Update callback triggered when beta value changes, it calls pohlke.utils.helpers.camera_attributes_updated()

Parameters#

selfbpy.types.PropertyGroup

Property group instance

contextbpy.types.Context

Blender context

pohlke.properties.camera_z_value_updated(self: bpy.types.PropertyGroup, context: bpy.types.Context) None[source]#

Update callback triggered when z value changes.

Change the camera type if the z-axis reduction factor does not match the selected preset.

Parameters#

selfbpy.types.PropertyGroup

Property group instance

contextbpy.types.Context

Blender context

class pohlke.properties.Pohlke_PT_CameraProperties[source]#

Bases: bpy.types.PropertyGroup

Property group storing projection parameters for the parallel cameras.

This group is attached to bpy.types.Scene and used by the UI panel to configure camera creation.

Attributes#

projection_typeenum

Main projection category:

  • ‘AXONOMETRIC’ : Axonometric projections.

  • ‘OBLIQUE’ : Oblique projections.

Triggers camera_type_update on change.

axonometric_typeenum

Sub-preset for axonometric cameras.

Available values are dynamically generated from the projection definitions declared in presets.toml and loaded via data.py. They are no longer hardcoded.

Each preset follows the naming pattern:

‘AXONOMETRIC_#<n>’

where <n> is the index of the preset as defined in presets.toml.

A ‘CUSTOM’ entry is automatically added when the current projection parameters do not match any predefined preset.

Triggers camera_type_update on change.

oblique_typeenum

Sub-preset for oblique cameras.

Available values are dynamically generated from the projection definitions declared in presets.toml and loaded via data.py. They are no longer hardcoded.

Each preset follows the naming pattern:

‘OBLIQUE_#<n>’

where <n> is the index of the preset as defined in presets.toml.

A ‘CUSTOM’ entry is automatically added when the current projection parameters do not match any predefined preset.

Triggers camera_type_update on change.

alphafloat

The alpha angle of the plan (in radians). Triggers camera_alpha_updated on change.

betafloat

The beta angle of the plan (in radians). Triggers camera_beta_updated on change.

rotationfloat

Computed rotation around the vertical axis, derived from beta.

altitudefloat

Computed altitude angle, derived from alpha.

altitude_obliquefloat

Complementary angle used specifically for oblique projections.

is_updatingbool

Internal flag to prevent infinite update loops during property sync.

x_valuefloat

Scaling factor for the X axis (0.0 to 1.0).

normalized_x_valuefloat

Nomalized scaling factor for the X axis (0.0 to 1.0).

y_valuefloat

Scaling factor for the Y axis (0.0 to 1.0).

normalized_y_valuefloat

Nomalized scaling factor for the Y axis (0.0 to 1.0).

z_valuefloat

Scaling factor for the Z axis (0.0 to 1.0).

normalized_z_valuefloat

Nomalized scaling factor for the Z axis (0.0 to 1.0).

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

Register the property group and attach it to the Scene type.

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

Unregister the property group and remove it from the Scene type.