Forum: Poser Python Scripting


Subject: Poser crash at 'Quantizing Colors'

Ralf61 opened this issue on Jan 19, 2005 ยท 10 posts


Ralf61 posted Wed, 19 January 2005 at 9:49 AM

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