← All ideas
  • Published 24 Feb 2025

Leading zeroes for number

I want to make a 3d timer with geometry nodes but there is no way for me to add zeroes before a single-digit number. I'm trying and trying but I couldn't find a way. I looked up for a solution but I can't find any. A new function that add leading zero would be much appreciated!

Love to Blender Development Team ;) blender idea leading zero.PNG

EDIT:

Got my solution thanks to Lauloque. I copy their code to my node group. Thanks a lot :D Timer3d.PNG

100%

Development Status: Open

Upvote 1 Downvote 0
ha_vy
24 Feb 2025

2 Comments

Lauloque

It's in fact already possible:

demo pic

demo gif

There are probably smart ways to make it work with negative numbers and also chose whether to zero-pad on the left and right, with a nice node group for good user experience.

2
ha_vy Author

OMG you're awesome. I couldn't fully understand your setup but it works! I pulled my hair the whole night trying to find a solution. You're truly a lifesaver! Thanks a lot!