Mon, Jan 20, 2:47 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 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: Here is some interesting situation..


Tiny ( ) posted Thu, 30 September 2004 at 4:48 PM · edited Mon, 20 January 2025 at 11:29 AM

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

file_131488.jpg

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


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.