Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Dec 02 3:16 pm)
Sure, Primorge posted it over in another thread in Poser forum...
(thats why i checked out the contents before moving ahead...)
I'll PM Philc to be sure...but I was going under the impression from the header its fine, since its pretty clear. I guess someone could have altered that though?
the line
pathname = os.path.split(poser.AppLocation())[0]
sets the poser application folder as the start of the path for the file choos3er dialog.
you can simply change that line to point to whatever folder you want like
pathname = "c:documents and settingsownermy documentsposer_scenes"
the double slashes are required by python since the is a control character.
Yes it is a freebie, the original post with the script may be found here:-
I was actually trying to get the "current" filename, not a default. So if I opened an already existing (not new) pz3, it would use its existing name and path as the starting point in the file chooser.
...on another unrelated note, I notice that if you hit "Cancel", it crashes Poser9 (or at least my Poser9).
I added the below before the Return in getpath (basically just checks to see if you left the default filename with asterisk in it):
if PZ3path.find("*") != -1:
doIt = 0
You can add some information using the CreateValueParameter in the scene to let you store things for Poser later. Poser itself does not keep the scene filename anywhere. Its a common request.
If you write a loader script to get the filename of the pz3, load that scene , and save the scene filename in a ValueParameter its a bit easier. However if you save the scene using Posers menu your parameter will be wrong.
I dont know if they added something in Poser later than 7 but it would be in the Poser Methods manual if it exists.
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.
Is there a way to do this? I got a copy of Philc's Save PZ3 with Thumb, which is cool....but it defaults to no filename and a default path (no where near my desired location) for any PZ3 I have opened.
I'd like to enhance it, and open that file save dialog with the current filename and path
Didn't see anything re: this, in the Poser Python reference manual.