Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Dec 02 3:16 pm)
I suppose that your scripts lies at "runtime:library:", wherever it is on your computer, hence my silly question:
I suppose that the relative path "Genesis 8 Male\Characters\Iuvenis_Scriptor\Calisto" exists?
𝒫𝒽𝓎𝓁
(っ◔◡◔)っ
👿 Win11 on i9-13900K@5GHz, 64GB, RoG Strix B760F Gamng, Asus Tuf Gaming RTX 4070 OC Edition, 1 TB SSD, 6+4+8TB HD
👿 Mac Mini M2, Sequoia 15.2, 16GB, 500GB SSD
👿 Nas 10TB
👿 Poser 13 and soon 14 ❤️
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.
I've encountered quite a mystery in Poser 12.0.757. I'm working on a script that starts out like this:
import os
import poser
loc = os.path.dirname(os.path.abspath(__file__))
lib = loc.split("Materials")[0]
fig = os.path.join(lib,"Character\Genesis 8 Male\Characters\Iuvenis_Scriptor\Calisto")
scene = poser.Scene()
figure = scene.CurrentFigure()
scene.SaveLibraryFigure(os.path.join(fig,"Calisto.cr2"))
The odd thing is that, when it reaches the last line reprinted above, Poser thinks for a bit and then just closes. No error message or anything. It just exits, as if I'd clicked the X in the top right corner of the window. And yet, when I do the exact same thing manually (via the '+' button in the Library palette), it works just fine. The same code (with paths and filenames appropriately adjusted) also works just fine on La Femme, but not on a converted G8M. I'm at a loss, so I'd be thankful for any tips!