python – how to grab proper sequential filename format

Hi, i’m trying to grab the filename from a ‘write’ node.
using node[‘file’].value() , i can get the name and path, but the problem if i use sequential name , it’s always convert the ‘####’ format into ‘%0xd’ format. so for example :

Code:

/path/render.####.jpg
will become /path/render.%04d.jpg


I don’t want this. I want to have the name still using #### format. How can i do this? if possible i don’t want to do complex regex unless there’s no simple way.

thanx

No Responses to “python – how to grab proper sequential filename format”

Post a Comment