Sun, Dec 1, 9:28 PM 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 Sep 18 2:50 am)

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: Poser crash at 'Quantizing Colors'


Ralf61 ( ) posted Wed, 19 January 2005 at 9:49 AM ยท edited Sun, 01 December 2024 at 7:39 PM

I have a strange error: I want to make some flashanims. Every thing works finde as long as I click on Make Movie. But as soon as I use 'MakeMovie' within a Python script, Poser freezes. I tried different setting - but all with the same result. Thats how it looks in my source: scene = poser.Scene() moviemaker = scene.MovieMaker() moviemaker.MakeFlash("C:test.swf") I tried the macro which is delievered with poser 'ExportFlash' with the same result. Any hints?


ockham ( ) posted Wed, 19 January 2005 at 11:53 AM

I'm not familiar with Flash, so I don't know the details. But the filename is definitely wrong. You either need to write moviemaker.MakeFlash("C:test.swf") or use normpath. Normpath is better, because it will let the same script work on both Mac and PC. Here's the script with normpath, which does give a SWF output on my computer. Note the forward slash..... import poser import os scene = poser.Scene() moviemaker = scene.MovieMaker() FileName=os.path.normpath("C:/test.swf") moviemaker.MakeFlash(FileName)

My python page
My ShareCG freebies


ockham ( ) posted Wed, 19 January 2005 at 11:56 AM

Another small thing: it's generally not good to write files to the root directory C: . It's possible that some part of your system (antivirus, firewall???) may be rejecting this. Better to pick a definite folder, as in FileName=os.path.normpath("C:/misc/test.swf")

My python page
My ShareCG freebies


Ralf61 ( ) posted Wed, 19 January 2005 at 1:57 PM

Thanks for the hints, and of course you're right. But unfortunetly this does't solve my problem ... sigh ... I can't believe, that I'm the first one who has this problem. I checked this on three computers .. always the same result ... strange ... The requester with "Quantizing Colors" is on the screen and doesn't disappear. But you can work with poser as usual ... You can even start a new python program ... but a swf will never created from python ...


ockham ( ) posted Thu, 20 January 2005 at 2:32 PM

The MovieMaker stuff in Python hasn't been used much, so I'm not surprised that you're the first one to see the problem. I don't get that problem on my computer, using windows XP, Poser Propack. The SWF is complete; no hangup. Haven't tried on P5 yet.

My python page
My ShareCG freebies


Ralf61 ( ) posted Thu, 20 January 2005 at 2:38 PM

Thanks again! I'll check on another computer with fresh installed System and Poser.


ockham ( ) posted Fri, 21 January 2005 at 11:53 AM

Aha! I just tried in P5 and had the same problem. Stuck in Quantizing Colors. It wasn't exactly a crash, because I could use Ctrl-Alt-Delete (the Task Manager) to kill Poser. So this is either a bug, or there's something extra that needs to be done in P5...?

My python page
My ShareCG freebies


ockham ( ) posted Fri, 21 January 2005 at 12:10 PM

Tried several extra commands, such as setting the number of colors. No good. I think this is a real bug in P5.

My python page
My ShareCG freebies


Ralf61 ( ) posted Fri, 21 January 2005 at 12:19 PM

Thanks for your investigation. So now I'm a little bit proudt, to be the first one, who found the bug :-) Even if this helps me only in a moralic way :-)) As we all know, the MovieMaker of Poser need a complete workaraound - but Curious didn't do that from V4 to V5 - why should this fix at V6? Anyway thanks to Ockham!


ockham ( ) posted Fri, 21 January 2005 at 12:25 PM

There still may be a fix, but it sure looks like a bug to me.

My python page
My ShareCG freebies


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.