Properties¶
Section Pro attaches custom property groups to Blender’s built-in data types. All are accessible from Python via the section_pro attribute on the corresponding data-block.
Scene Properties — bpy.types.Scene.section_pro¶
Stored on every Blender scene as scene.section_pro.
Property |
Type |
Description |
|---|---|---|
|
Collection |
List of SectionItem entries (one per section). |
|
Collection |
List of DrawingItem entries (one per drawing). |
|
Collection |
List of View entries. |
|
Int |
Index of the currently active section in the list. |
|
Int |
Index of the currently active drawing in the list. |
|
Int |
Index of the currently active view. Changing this index triggers view restoration (if enabled in preferences). |
SectionItem¶
A lightweight reference that links a list entry to its section object.
Property |
Type |
Description |
|---|---|---|
|
Object pointer |
The Blender object acting as the section plane. |
DrawingItem¶
A lightweight reference that links a list entry to its drawing object.
Property |
Type |
Description |
|---|---|---|
|
Object pointer |
The Blender object containing the drawing mesh. |
View¶
Stored in scene.section_pro.views.
Property |
Type |
Description |
|---|---|---|
|
Enum |
Section rendering method for this view: |
|
Collection |
Per-section enabled/hidden state. See ViewSectionState. |
|
Collection |
Per-drawing show state. See ViewDrawingState. |
|
Boolean |
Whether the viewport camera orientation is saved/restored for this view. |
|
Boolean |
Whether the viewport shading mode is saved/restored for this view. |
|
Boolean |
Whether the viewport projection type (orthographic/perspective) is saved/restored. |
|
Vector (3) |
Saved viewport view location. |
|
Vector (4) |
Saved viewport view rotation as a quaternion. |
|
Float |
Saved viewport view distance / zoom level. |
|
String |
Saved viewport shading mode identifier. |
|
String |
Saved viewport projection mode identifier. |
ViewSectionState¶
Property |
Type |
Description |
|---|---|---|
|
Object pointer |
The section object this state belongs to. |
|
Boolean |
Whether the section is enabled in this view. |
|
Boolean |
Whether the section object itself is hidden in the viewport. |
ViewDrawingState¶
Property |
Type |
Description |
|---|---|---|
|
Object pointer |
The drawing object this state belongs to. |
|
Boolean |
Whether the drawing is visible in this view. |
Object Properties — bpy.types.Object.section_pro¶
Stored on every Blender object as obj.section_pro.
Property |
Type |
Description |
|---|---|---|
|
String |
Unique identifier assigned by Section Pro. Used internally to track associations between objects. |
|
Enum |
The object’s role in the addon: |
|
PropertyGroup |
Section plane settings. See Section. Only meaningful when |
|
PropertyGroup |
Cutter settings. See Cutter. Only meaningful when |
|
PropertyGroup |
Drawing settings. See Drawing. Only meaningful when |
|
Color (RGB) |
The fill color applied to the section cut face (per object). |
|
Boolean |
When enabled, this object’s |
|
Color (RGB) |
The section color inherited from the parent collection (read-only; set via the collection’s |
|
Object pointer |
Reference to this object’s proxy mesh (for objects of unsupported types). |
|
Object pointer |
If this object is a proxy, the source object it represents. |
Section¶
Accessible via obj.section_pro.section on section plane objects.
Property |
Type |
Description |
|---|---|---|
|
Enum |
Which objects are affected: |
|
Collection |
List of collections in scope (only used when |
|
Int |
Active index in the collections list. |
|
Object pointer |
The cutter object used by the Boolean method. |
|
Boolean |
When |
|
Boolean |
Whether the section plane gizmo overlay is visible in the viewport. |
|
Color (RGB) |
The color of the section plane gizmo overlay. |
Cutter¶
Accessible via obj.section_pro.cutter on cutter objects.
Property |
Type |
Description |
|---|---|---|
|
Object pointer |
Back-reference to the section object that owns this cutter. |
Drawing¶
Accessible via obj.section_pro.drawing on drawing objects.
Property |
Type |
Description |
|---|---|---|
|
Object pointer |
The section object the drawing was generated from. |
|
Vector (3) |
World location of the section object at the time of drawing creation. |
|
Vector (3) |
Rotation of the section object at the time of drawing creation. |
|
Enum |
Placement mode used at creation: |
|
Boolean |
Whether hidden objects were included. |
|
Boolean |
Whether projection edges were generated. |
|
Boolean |
Whether perspective distortion was applied to projection edges. |
|
Float |
Perspective distortion strength. |
|
Boolean |
Whether a projection limit distance was used. |
|
Float |
Projection limit distance in scene units. |
|
Boolean |
Whether hidden edge detection was applied. |
|
Int |
Maximum boundary-refinement iterations for HED. |
|
Float |
Detection step size (metres) for mid-segment hidden checks. |
|
Float |
Angle threshold (radians) below which adjacent hidden segments are dissolved. |
|
Float |
Distance threshold (metres) for merging nearby hidden edge endpoints. |
|
Float |
Sampling distance (metres) along edges during hidden-edge detection. |
Collection Properties — bpy.types.Collection.section_pro¶
Stored on every Blender collection as collection.section_pro.
Property |
Type |
Description |
|---|---|---|
|
Enum |
Internal role of the collection: |
|
Color (RGB) |
Default section fill color applied to all objects in this collection. Changing this value propagates to all member objects that do not have |