Sidebar Panel (N Panel) - Complete Documentation¶
PLACE IMAGE OF THE COMPLETE DAMTools N-PANEL HERE
The DAMTools Sidebar Panel (N Panel) is the main control center of the addon, providing quick and visual access to all tools, options, and workflows. It is organized into clear sections and accessible from the "DAMTools" tab in the 3D Viewport sidebar.
Index¶
- What is the Sidebar Panel?
- Structure and Sections
- Visual Example of the Panel
- Key Code Snippets
- Suggested Images
What is the Sidebar Panel?¶
It is a custom panel that appears in the sidebar (N) of the 3D Viewport under the "DAMTools" tab. From here, all the main tools can be executed, options can be configured, and common workflows can be accessed without navigating complex menus.
PLACE IMAGE OF THE DAMTools N-PANEL IN THE 3D VIEWPORT HERE
Structure and Sections¶
The panel is divided into several sections, each grouping related tools:
- Batch Import
- Format selection (OBJ/STL)
- Search and offset options
-
"Import from Folder..." button
-
Join Nearby Objects
- Proximity threshold
-
"Join Selected Nearby" button
-
Object Extraction
- Material/texture options
- Name prefix
-
"Extract Selection to New File" button
-
Quick Export (STL)
- Shows the last import folder
-
"Export Selection as STL" button
-
QuickSnap
- Button to activate QuickSnap
- (Optional) Access to pie menu and preferences
PLACE IMAGE OF EACH SECTION OF THE SIDEBAR PANEL HERE
Visual Example of the Panel¶
+-----------------------------+
| DAMTools (N Panel) |
+-----------------------------+
| [Batch Import] |
| [ ] OBJ [ ] STL |
| [ ] Recursive |
| [ ] Offset X |
| [Import from Folder] |
+-----------------------------+
| [Join Nearby Objects] |
| Threshold: [ 0.01 ] |
| [Join Selected] |
+-----------------------------+
| [Object Extraction] |
| [ ] Materials [ ] Text. |
| Prefix: [Caja_] |
| [Extract Selection] |
+-----------------------------+
| [Quick Export (STL)] |
| Folder: .../import/ |
| [Export Selection STL] |
+-----------------------------+
| [QuickSnap] |
| [Activate QuickSnap] |
+-----------------------------+
PLACE REAL IMAGE OF THE SIDEBAR PANEL IN BLENDER HERE
Key Code Snippets¶
Panel Definition¶
class VIEW3D_PT_BatchImportPanel(bpy.types.Panel):
bl_label = "DAMTools"
bl_idname = "VIEW3D_PT_batch_import_panel"
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_category = "DAMTools"
def draw(self, context):
layout = self.layout
# ... (sections structure)
Suggested Images¶
- PLACE IMAGE OF THE COMPLETE N-PANEL
- PLACE IMAGE OF EACH PANEL SECTION
- PLACE IMAGE OF THE QUICKSNAP BUTTON ON THE N-PANEL
- PLACE IMAGE OF THE PANEL IN ACTUAL USE IN BLENDER
For technical details and explanation of each file, see the technical documentation in the [DOCUMENTATION] folder.