Forum: Poser Python Scripting


Subject: Here is some interesting situation..

Tiny opened this issue on Sep 30, 2004 ยท 7 posts


Tiny posted Thu, 30 September 2004 at 4:48 PM

Ockham, there was nothing whatsoever wrong with your OneRender script! =o.

I found out why some of my files wouldn't render (got an 'Invalid scene object' error). I think they were too "far down" in directory!

After I've tested my scene by first, adding one item at a time and then Pythonize it. And second, deleting one item at a time and Pythonizing. Still errrors.
Then I moved the whole bunch of files "higher up" in directories. Same files no Python errors!
Strange huh. It's as if it was too far from the Python script somehow.

Just wanted ya' to know. :o)



ockham posted Fri, 01 October 2004 at 9:23 AM

That is interesting. I would think the error would show up before that point... if there's a problem with directories, the file itself should count as nonexistent, or "can't open file". Sounds more like the file is opening but not reading completely. ? Can you do a screenshot of a "bad" folder structure as seen in the usual Windows directory, so I can try to reproduce? I won't have the same PZ3s, but maybe I can set up a folder with similar layers.

My python page
My ShareCG freebies


Tiny posted Fri, 01 October 2004 at 10:36 AM

As usual (almost) when setting things up to explain or show others the solution hits you in the face!

The problem was the swedish characters in the dir name!

Another thing I noticed:
When moving the files to a second computer for rendering it wouldn't render the image backgrounds.
After long hours I found that the path had to be exactly as on the computer the files were created on. Fortunately I have similar setup on the second puter (with a D: disk for work) so that was easily fixed.

So is this 'common knowledge' and I'm just '100 miles behind' or what? ;o)



ockham posted Fri, 01 October 2004 at 10:54 AM

Now that's even more interesting. I've seen some comments in various Python programming forums on the web, about Swedish/Danish/etc characters. I'll look again in those forums and see if there is a solution. You shouldn't have to translate your directories into English to make it work! On moving PZ3 to different computer: Normally Poser will write a texture name in relative form, starting from the folder where Poser.exe stands. If the texture file is outside the Poser world, the name will be absolute. ------- For instance: Actual file name C:/Poser4/darla/zzzback/office.jpg In the PZ3, will be: :darla:zzzback:office.jpg --------- Actual file name C:/Otherstuff/textures/office.jpg In the PZ3, will be: C:Otherstuff:textures:office.jpg ---------

My python page
My ShareCG freebies


ockham posted Fri, 01 October 2004 at 12:07 PM

Still no obvious solution for the umlauts. It just struck me that this is ironic, considering that Python was originally written by Guido van Rossum (NL) and Tkinter was written by Fredrik Lundh (SE)!!

My python page
My ShareCG freebies


Tiny posted Fri, 01 October 2004 at 5:00 PM

snip ... this is ironic,
considering that Python was originally
written by Guido van Rossum (NL) and
Tkinter was written by Fredrik Lundh (SE)!! <<

Typical! :o)

You are right, one shouldn't have to translate the names. But for me I usually have them in english since Poser 5 choked on them swedish letters (in Poser folder names). And P4 didn't so when moving over to P5 I got used to using english only. Don't know why that one dir was in swedish still.

It is a great feeling having the other machine working like crazy rendering. Meanwhile I'm putting the scenes together on the first machine. Always wanted it this way.
It is all possible thanks to your scripts! :oD



ockham posted Fri, 01 October 2004 at 5:10 PM

All right. Since you have things running, I'll stop worrying!

My python page
My ShareCG freebies