Forum: Poser Python Scripting


Subject: Python can set a render-engine and render, but can it also call a preset?

HartyBart opened this issue on Dec 05, 2020 ยท 23 posts


adp001 posted Tue, 08 December 2020 at 9:14 PM

maur_2005 posted at 9:11PM Tue, 08 December 2020 - #4406742

Nice.

It would be great to save the image with the same name of the current Poser file...

The question is, how can I get the name of the current Poser file?

filename, _, _ = wx.GetTopLevelWindows()[0].GetLabel().partition("-")

(those underscores are intentional and are used as placeholders if variables are not used)

If no scene is loaded filename becomes "Untitled".