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. :(



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

Solved it!
Typical isn't it, you sit with an issue trying different solutions and after giving up and posting on a forum about it you go and solve it. Doh! 



PhilC posted Tue, 17 May 2011 at 4:44 AM

Yep so true. Now let me see if I can get it to work for me.

What's the meaning of life, the universe and everything?


PhilC posted Tue, 17 May 2011 at 4:45 AM

Nope. Ahh well it was worth a shot :)


markschum posted Tue, 17 May 2011 at 10:07 AM

42 , we apologize for the inconvenience :)


Tiny posted Tue, 17 May 2011 at 10:23 AM

Phil, you didn't give it enough time that's all, it'll come to you. ;)

About the meaning of it all I think someone, we can call him God, made some computer programs/games and the ultimate was to have a self supporting character that went on with his business taking care of the place (earth). Bug testing couldn't be done due to the huge project and not too many others around... well we see the result around us. :)

So the question I have is: Does he have a plan B/C/D, a patch, will he redo the whole thing or just tend to other things and forget about it?



grichter posted Mon, 23 May 2011 at 8:45 AM

There was to have been a total forced quit aka Alt-Control-Delete last Saturday wasn't there? :scared:

Gary

"Those who lose themselves in a passion lose less than those who lose their passion"


PhilC posted Mon, 23 May 2011 at 9:44 AM

Only if you had previously been Ctrl+S I believe.