Multiline text name lightbox generator

Copyright Claim

Multiline text name lightbox generator

Boost
963
1669
198

Print Profile(2)

All
A1

On Air lightbox
On Air lightbox
Designer
2.3 h
1 plate
5.0(4)

Bazinga lightbox
Bazinga lightbox
Designer
2.1 h
1 plate

Open in Bambu Studio
Boost
963
1669
198
202
1.5 k
565
Released

Description

This OpenSCAD script generates customizable 3D printable lightboxes with personalized multi-line text. You can create unique lightboxes by selecting from multiple fonts and adding multi-line text. Additionally, you have the option to include a hole for LED strips or to hang the lightbox on the wall, enhancing its functionality and aesthetic appeal.

To personalize your lightbox, please use the “Customize” button available on the MakerWorld website. Note that this feature is currently not supported in the Bambu Handy app.

 

 

Boost Me (for free)

Boosts really help me continue designing, so if you like my work, it's a great way to say thank you at no cost to you.

Parameters

 

  • customText: The text to display on the lightbox. Use * to separate lines (e.g., "Home*Sweet*Home").
  • part: Lid and box are generated separately, select the desired part and download the file. (Please note that if the size of the piece you are trying to export is larger than your printer's build plate, the file generation will fail. Make sure to adjust your design parameters accordingly to fit within your printer's build volume.)

 

Text Options:

  •  
  • font: Choose your preferred font from the available options.
  • textSize: Font size of the text.
  • alignment: Align the text within the box.
    • "left": Aligns text to the left.
    • "center": Centers the text.
  • fillGaps: When true, fills the gaps between lines of text. Useful when spacing or symbols leave large empty spaces.
  • flatBase: When true, creates a flat base at the bottom of the text, helping the lightbox stand straight (useful for letters like "g" or "j").

Box Options:

  • extrudeHeight: The total height of the lightbox.
  • baseWidth: Thickness of the base layer.
  • lidStep: Height of the connection between the lid and the box.
  • nameLayerHeight: Height of the layer containing the text. Set to 0.8mm because painting tools in Bambu Studio won't go deeper than 0.4mm. Increasing this value may result in layers that don't receive the new color.

Color Options:

  • fontColor: Color for the text layer (for visualization).
  • boxColor: Color for the box layer (for visualization).

LED Hole Options:

  • ledHoleRadius: Diameter of the hole for LED wiring.
  • offsetXledHole / offsetYledHole: Horizontal and vertical offsets to adjust the position of the LED hole.

Hanging Hole Options:

  • addHangingHole: When true, includes a hole for hanging the lightbox.
  • hangingHoleLargeRadius: Radius of the larger part of the hanging hole (bottom circle).
  • hangingHoleSmallRadius: Radius of the smaller part of the hanging hole (top circle).
  • hangingHoleHeight: Total height of the hanging hole shape.
  • hangingHoleHeightOffset: Offset to adjust the vertical position of the hanging hole.

Exporting 3MF:

  • Customize your lightbox using the MakerWorld website.
  • Configure all parameters to your preference.
  • Press generate for each of the parts of the model “lid” and “box”.
  • Export the model as an 3MF file, ready for 3D printing.

3D Printing:

  • Load the 3MF file into Bambu Studio.
  • If needed, use the paint bucket tools to apply colors to different parts of the model if your printer supports multi-color printing.

 

Generation video tutorial

 

How to Run the Script Locally:

  • Important: Running this script in the regular OpenSCAD version may cause warnings.
  • Download and install the Development Snapshot version of OpenSCAD.
  • Once installed, navigate to:
    • Edit → Preferences → Features
  • Enable the textmetrics feature by checking its box.

Notes:

  • The nameLayerHeight is optimized for painting features in Bambu Studio.
  • The text is designed to be face down to improve print quality; ensure you apply any color changes to the correct side.
  • If using the fillGaps feature, it will fill empty spaces between lines for a more solid appearance.
  • The flatBase option is useful for text that includes descending characters like "g" or "j" to ensure the lightbox stands upright.

 

Version Control

  • v2. Added option to add a border around the text, wall customization, hanger customization options
  • v1. Initial version

 

Bill of Materials

Maker’s Supply Kits and Parts
Buy Now
Download BOM

Comment & Rating (198)

Please fill in your opinion
(0/5000)

Boosted
Unfortunately, I do not understand the instructions, I do not know what to do.
The designer has replied
Show original
1
Reply
From the web version, press the customize button. There you can change the text, the font, the font size.... Once you like the result, generate the 3MF file for both parts of the lightbox changing the first option of the customizer between "lid" and "box". Import them into bambu studio and print
1
Reply
Boosted
Replying to @migueljeronimoa :
I am sorry, but I cannot understand which web version you are referring to.
Show original
1
Reply
Replying to @maikowulf :
I mean you can not customize it from the app, the page needs to be open from a web browser to have the button enabled
1
Reply
Thank you very much for this. Web version works great. Ive been wanting to run locally to see if i can add more fonts and work offline but have run into issues. The rendering is slow (that's ok, probably my PC) but it doesn't render the text, just the shape. No errors when rendering. Maybe it does but there's no colouring to it? Im attaching an image of what is shown and all i did was copy the code into the latest openscad, change the text and hit render. Preferences set to have textmetrics on. I've tried to export as a 3mf to Bambu, but you can see in the image the text is there but its all one colour . I have found i can paint using the fill to add it back. Any advise?
The designer has replied
0
Reply
colour exporting is not part of the openscad project, it has been made thanks to some makerworld developers. I'm not sure, but probably you would need to compile that branch to make it work, and even with that I'm not sure how could you export it into 3mf. When running it locally, your only option is to manually colour it in Bambu slicer (the text is in a slightly different layer, so using the bucket option should make the job easier) Hope it helps you!!
0
Reply
Replying to @migueljeronimoa :
@migueljeronimoa thanks for the super quick reply. I guess that makes sense for the export and glad it can be coloured so easily in the slicer. Is it the same why it won’t render the colour? I know I’m asking a lot but any tips on adding additional fonts?
0
Reply
Replying to @benjydog83 :
colours in preview should work, but I guess that like the layer difference is so small it struggles to render the image. Maybe it could also be related with the color definition. you can try change colours to something like ("red")
0
Reply
not sure what happened with mine first fail but only had printer couple of days
The designer has replied
0
Reply
it looks like a problem with the extrusion of the colors. Are you sure your other colors are extruding ok?
0
Reply
Replying to @migueljeronimoa :
yes been using them today with no problems will try again
0
Reply
mine has done the same 3 times but only on this print dont know why
0
Reply
Boosted
Thanks man, looks sick!
(Edited)
GIF
2
Reply
What filament did you use for the letters. Is it white PLA or something transparent?
0
Reply
Print Profile
On Air lightbox
The designer has replied
3
Reply
love it!!!
0
Reply
nice done
0
Reply
Boosted
Very Nice! Is it possible to add and outline feature, so that you can add an outline around the text?
The designer has replied
0
Reply
do you mean around just the letters?I was thinking about adding one around the box border, but I think I can do both. I will try to add the option this week. Thanks for the feedback
1
Reply
Boosted
Replying to @migueljeronimoa :
Yes, see how the white is around the letters in my doom lightbox (this was achieved with a doom font). It would be nice to add that outline around any text you add and maybe control the offset.
0
Reply
Replying to @DeweyCox :
I'm having a tough week at work, but I will try to implement it during the weekend. Thanks for the suggestion
1
Reply
if there's a way to add png or jpeg files to make light boxes that would be great
The designer has replied
0
Reply
I have another model for doing something similar, but with the current tools in openscad, I'm quite limited. You can take a look and play with it here: https://makerworld.com/en/models/583754#profileId-504900
2
Reply
Replying to @migueljeronimoa :
Wow great i will try it. How do you make such custom tools?
0
Reply
Replying to @nikolay_nikolov :
thanks, the software is called openscad, and it is a programming language
1
Reply
Awesome work mate, any chance of being able to import a SVG file ?
The designer has replied
0
Reply
do you mean combined with the text? if it is just the svg, check my profile, I have an openscad project for doing simple lightboxes
0
Reply
Replying to @migueljeronimoa :
yes, custom text AND a svg file in the one lightbox.
0
Reply
Replying to @tonyrkitching :
I will give it a try, but I think multiline text + svg is going to be too complicated and the web will timout because the time it takes to process.
0
Reply
Boosted
any idea why i cant use my installed Fonts in OpenScad Dev Snapshot? I have the Fonts installed for all users but when i type in the Font name it wont work. But it Does Work for other SCAD Files...
The designer has replied
0
Reply
Do you mean the font doesn't appear in the dropdown menu? The only fonts that will appear in the list are the ones that are listed in the comments. So if you want to add yours, you should add the name of your font to the comments in the source code. Tell me if you can't fix it and I will try it in my own PC
1
Reply
Boosted
Replying to @migueljeronimoa :
Fixed just like you said, THX
1
Reply
Replying to @migueljeronimoa :
having troubles with this. nub life
0
Reply

License

This user content is licensed under a Standard Digital File License.

You shall not share, sub-license, sell, rent, host, transfer, or distribute in any way the digital or 3D printed versions of this object, nor any other derivative work of this object in its digital or physical format (including - but not limited to - remixes of this object, and hosting on other digital platforms). The objects may not be used without permission in any way whatsoever in which you charge money, or collect fees.