Sun, Jan 5, 7:18 AM CST

Renderosity Forums / Poser Python Scripting



Welcome to the Poser Python Scripting Forum

Forum Moderators: Staff

Poser Python Scripting F.A.Q (Last Updated: 2024 Dec 02 3:16 pm)

We now have a ProPack Section in the Poser FreeStuff.
Check out the new Poser Python Wish List thread. If you have an idea for a script, jot it down and maybe someone can write it. If you're looking to write a script, check out this thread for useful suggestions.

Also, check out the official Python site for interpreters, sample code, applications, cool links and debuggers. This is THE central site for Python.

You can now attach text files to your posts to pass around scripts. Just attach the script as a txt file like you would a jpg or gif. Since the forum will use a random name for the file in the link, you should give instructions on what the file name should be and where to install it. Its a good idea to usually put that info right in the script file as well.

Checkout the Renderosity MarketPlace - Your source for digital art content!



Subject: Adding a 0 to the output filename?


Tiny ( ) posted Tue, 17 May 2011 at 3:22 AM · edited Thu, 18 July 2024 at 2:58 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 · edited 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 · edited Mon, 23 May 2011 at 8:46 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.


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.