How to get one layer color text?

I want to get one layer text on a surface, is that doable using code?
I got this code:
union(){
color([1,0,0]) linear_extrude(height=0.2) text(text=“abc”);
cube([30, 30, 10]);
}
I download the 3mf and even the layer height is 0.2, it still generated 3 layers of red text. Anyway to fix that? Thanks!

Set the thickness of your text to the layer height you are using (I.e. 0.20mm). I usually set it to two layer height thicknesses because most filament is somewhat translucent.

Colors in Bambu studio are done by “painting”. Default settings for 0.2mm profile enforce 3 layers colour penetration - change that to 1 and you will get what you intended without code changes

2 Likes

What @Yatuin said is correct.

Keep in mind, that one layer of colour for anything, including text is likely too thin to be suitable for the likely need for contrast.

A 0.2mm layer of one colour sitting over another colour will be very translucent.

If that is what you are seeking, perfect.

Given it is text, I imagine you would like it to be readable. 0.2mm is not going to achieve that. 0.6mm is better, often 1mm is far better.

All of the above assumes the layer height is also 0.2mm.

1 Like

One layer of black on a white model will print OK. 2 layers would be better. One layer of white on a black background would be much less readable and would look grey rather than black.