Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Dec 02 3:16 pm)
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
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)
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
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
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
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.
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)