Forum: Poser Python Scripting


Subject: Pre-populate save dialog with current filename/path

3doutlaw opened this issue on Dec 11, 2012 · 10 posts


3doutlaw posted Tue, 11 December 2012 at 1:24 PM

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