April 14, 2025
Description
With this OpenSCAD script, you can create tabbed dividers with custom icons for any card size. It started out as a way to automate adding more expansions to my Arkham Horror dividers, now it is flexible enough to be used for any type of cards.
Card dimensions: The most important parameters are "horizontal" and "vertical". Set these to the size of your cards. The longer side should be assigned to "horizontal" for sideways storage, or to "vertical" for upright storage.
Tabs: Depending on the size set for "horizontal", the number and size of tabs must be configured:
Some recommended settings, based on Arkham Horror cards:
| horizontal | tabs | tab_width | tab_angle | tab_height |
| 87 | 4 | 16 | 45 | 10 |
| 61 | 3 | 14 | 30 | 10 |
To try out other values, you can set “test_tabs” to true. This will ignore the “index” setting and render as many dividers as there are tabs, put above each other, so you can see how much the tabs overlap.
Icons: Set “icon” to the path to an SVG file (or upload one if using the web interface). The icon will be scaled down to have a height of “target_icon_height”. You can additionally set the “target_icon_width”. If you leave that at 0, the icon will keep it's aspect ratio, which will cause it to be off center, if it isn't square. Also, if it is much wider than tall, it can cause it to spill over. As OpenSCAD can't fit an SVG into a box while keeping the aspect ratio, you need to calculate both values for non-square icons. I do this in my wrapper script for the Arkham cards.
Colored icons: if you have `colorscad` available, you can use it to export a 3mf file which has the icon as a separate object, so you can set its color in BambuStudio. I have not managed to have it create a 3mf with color information that BambuStudio understands directly.
If you export as a single object, you can add a color change above 0.6mm (with my recommended print settings, this is at layer 7).
If you have a large amount of icons, creating the dividers via the web interface is not very quick. I recommend downloading the OpenSCAD file and running openscad in a loop. For my Arkham cards, I created a zsh script that I can pass a folder or several SVG files, which also calculates icon sizes with correct aspect, but it currently has a lot of hardcoded values. Feel free to use this as a basis for your cards.
License:
BY-SA