Forum: Poser Python Scripting


Subject: Adding a 0 to the output filename?

Tiny opened this issue on May 17, 2011 · 8 posts


Tiny posted Tue, 17 May 2011 at 3:22 AM

I need to get an extra 0 (zero) in to the output file name. How woould I go about to solve this?

This is the python lines that creates the file name:
  LastName = '_Angle%3.2f_Frame%3d.bmp' % (Step,F)                
  ImageName = PZ3BaseName + LastName

This is what the resulted file name looks like:
anim1.pz3_Angle0.00_Frame 10.png

 

I had this solved once upon a time but can't for my life find those files or remember how I did it. Am getting too old for this. :(