Skip to content

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?

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:

  1. Batch Import
  2. Format selection (OBJ/STL)
  3. Search and offset options
  4. "Import from Folder..." button

  5. Join Nearby Objects

  6. Proximity threshold
  7. "Join Selected Nearby" button

  8. Object Extraction

  9. Material/texture options
  10. Name prefix
  11. "Extract Selection to New File" button

  12. Quick Export (STL)

  13. Shows the last import folder
  14. "Export Selection as STL" button

  15. QuickSnap

  16. Button to activate QuickSnap
  17. (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.