Dieline Fold
Requirements
Blender 4.5 to 5.2 (the extension accepts 4.5.0 up to, not including, 5.3.0). Tested on Windows 11 with Blender 4.5.16 LTS and 5.2.4 LTS. The macOS and Linux builds of the bundled libraries are included but have not been tested. No account, subscription or network connection is needed; the extension only reads the file you choose.
Install
- In Blender open Edit > Preferences > Get Extensions.
- Open the menu in the upper-right corner and choose Install from Disk.
- Select
dieline_fold-1.0.0.zipand enable the extension.
The zip contains everything it needs, including the PDF and SVG libraries. Blender unpacks the ones for your operating system.
Quick start
- File > Import > Dieline (.pdf, .svg) and choose the file. Or press N in the 3D Viewport, open the Dieline tab, pick the file, click Scan Dieline, check the line classes and click Build Folding Box.
- Select the new rig. In the Dieline tab, Fold Controls shows the Fold all slider. 0 percent is the flat sheet, 100 percent folds every crease to its angle.
- To keep a different panel fixed, select a face of that panel in Edit Mode and click Rebuild with Root Panel, or type the panel number.
The flat sheet lies in the XY plane with the printed side up. Positive crease angles fold away from the printed side, so the box forms under the root panel and the print stays on the outside. To stand the box on the ground, rotate the rig 180 degrees around X.
How lines are recognised
Every stroked line in the file belongs to one or more classes. A class is one of:
- a spot colour name in a PDF (for example
CutContour,Crease), - a layer name: PDF optional content groups, SVG groups (
id,inkscape:labelordata-name), - a plain stroke colour (
color:rgb(255,0,255),color:cmyk(0,100,0,0)), for files that name nothing.
Each class has a role. Cut and Crease build the geometry. Hide ignores the line and keeps it out of the artwork (bleed, guides, perforation). Artwork leaves it alone as part of the print. Roles are suggested from the class name; you can change any of them in the sidebar before building, and the sidebar lists exactly what was found. A path that has several classes (a spot colour inside a layer) uses the first one, in the order spot colour, innermost layer, outer layers, colour, whose role is not Artwork.
The words used for the suggestions are in Edit > Preferences > Add-ons > Dieline Fold. Defaults: cut cut, diecut, knife, thrucut, =die; crease creas, fold, scor, bend; hide bleed, perf, safe, guide, dimension. A word matches inside a name, ignoring case and punctuation. =die must match the whole name.
PDF layers that are switched off in the file are ignored. Curves are converted to straight pieces with a tolerance of 0.01 mm. Page boxes (crop box inside media box), page rotation and UserUnit are applied, and SVG units (mm, cm, in, pt, pc, px) are converted to millimetres. The model is built in real size: with the default Blender units per mm of 0.001, one Blender unit is one metre.
Panels, hinges and fold order
The cut outline and the crease lines are joined into one network. Line ends closer than the Snap tolerance (default 0.2 mm) are joined, tiny gaps are closed, crossings become points, and duplicate or overlapping lines are merged (a cut wins over a crease). Every closed region inside the outline becomes a panel. Holes (finger holes, windows) are cut out of their panel.
Each crease between two panels becomes a hinge. The hinge tree grows from the root panel, longest creases first, so folds are ordered by distance from the root. There is one bone per panel and one driven control per hinge. A crease that would close a loop between panels cannot be a rigid hinge; it is reported and left open.
Fold all scales every crease angle. Fold order staggers the creases by depth: 0 folds everything at once, 1 folds level by level from the root outward. Each crease has its own angle at 100 percent (default 90 degrees, range -180 to 180). Mailer-box double walls fold 180 degrees; set that crease to 180. Tuck flaps and dust flaps that should sit inside the box can be set a few degrees past 90.
The controls are normal properties on the rig object (dieline_fold) driven by simple expressions, so they can be keyframed and need no Python permission.
Material thickness adds a Solidify modifier behind the printed side. It thickens the panels; it does not move the hinges to compensate for the board.
Printed artwork
PDF: the page is rendered with the cut, crease and hidden lines removed from the content (other strokes and all fills stay), at the size you set (default 2048 pixels on the long side, up to 8192). SVG: the same, rendered from the SVG without those lines. The image is packed into the .blend file and mapped through a UV map named Dieline, so unfolded UVs are the flat sheet. The material is a Principled BSDF with the artwork as base colour.
Error messages
The import stops with a message that names the problem when the file has no cut or crease lines, when the outline is open (it tells you where and which tolerance would close it), when a crease is not straight, when a PDF is only a raster image, and for unreadable or password-protected files.
Limits
- Curved creases are not folded; a crease must be a straight line.
- Every crease is a rigid hinge with one angle. Multi-crease folds such as crash-lock bottoms need the right angle on each crease (diagonal creases fold 180 degrees); the add-on does not solve the sequence for you.
- No crease radius, and no hinge offset for board thickness.
- SVG
clones are skipped (a note is shown). - Artwork covers one page and is drawn by the PDF renderer (PDFium) or the SVG renderer (resvg) as they support the file; SVG text uses fonts installed on your system.
- Encrypted PDFs: a PDF with only an owner password (printing or editing restrictions) opens when it uses RC4 encryption. PDFs that need a password, or that use AES encryption, are rejected; save a copy without protection first.
- It is a technical tool for visualisation. It does not replace a structural designer's sample or your packaging supplier's proofs.
Tested with
The test suite generates dielines (a tuck-end box, a mailer box with 180-degree walls, a sleeve with glue flap, and a crash-lock style tube with diagonal creases) as PDFs with spot colours, with layers, with plain colours and in an Illustrator style (CMYK artwork, form XObjects, compressed streams, an optional-content layer), and as SVG with layers, with plain colours and in an Illustrator style (CSS classes, data-name groups). Each file is imported, folded to 100 percent and checked: panel and crease counts, rigid panels, vertices that must meet at the closed box, UV coverage and manifold edges. All of it runs in real Blender against the installed extension zip: 560 checks pass on Blender 4.5.16 LTS and on 5.2.4 LTS (Windows 11). Dielines exported from packaging software have not been tested yet.
Licence and support
Code: GPL-3.0-or-later, included in LICENSE. Copyright 2026 Karelia Labs. Bundled libraries and their licences are listed in THIRD-PARTY.txt.
Support: ask through Superhive on this product, or write to [email protected]. Include your Blender version, operating system, the error text and, if you can, a small dieline that shows the problem. Do not send artwork you are not allowed to share.