Convert a numerical value to a string with specific frame padding?

I want a counter to determine which directory is used.

I use a + node with the string of the directory as one input and using As string Node I input a number 4.

However when these are added it becomes:

C:\Users\Desktop\ImageSequences\4.0000

but I want it to be like this:

C:\Users\Desktop\ImageSequences\4\

also with the \ at the end. Any ideas?

Okay oopss, just put another thing into the add node being a /.

Still can’t figure out the Padding though, I can change it to an integer so I can now get:

C:\Users\Desktop\ImageSequences\4\

but I’d like

C:\Users\Desktop\ImageSequences\0004\

Thanks

FormatValue (String) should do it.

Great! Thanks bjoern.