Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2025 Feb 05 6:41 am)
Hi,
I'm working with FreeImage and a tester had this message. As you are both German if I rememeber well, can you help me ?
Traceback (most recent call last):
File
"E:Programme3DPoser7runtimepythonposerscriptsartmaterialsartmaterialstoon.py",
line 6, in ?
from FreeImage import *
File "RuntimePythonposerScriptsArtMaterialsFreeImage.py", line
5, in ?
import _FreeImage
ImportError: DLL load failed: Diese Anwendung konnte nicht gestartet
werden, weil die Anwenungskonfiguration nicht korrekt ist. Zur
Problembehebung sollten Sie die Anwendung neu installieren.
My main code is starting with:
import poser
import os, sys, string, re, fnmatch, time
os.chdir( os.path.dirname(poser.AppLocation()) )
sys.path.append(os.path.join("Runtime","Python","poserScripts","ArtMaterials"))
from FreeImage import *
Thanks for your help !
Sounds that FreeImages DLL(s) aren't in the right place. May happen if a seperate Python installation is on the machine. FreeImage's setup will look into the Registry and may find something like "c:Python25" where it installs itself.
On my site here you can find a possibility to make a Registry-Entry for Poser Python. After this Python Libraries will be installed in the right place automatically.
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.
Attached Link: http://web.mac.com/keindesign/Python%20FreeImage.zip
I'm happy to announce that there is now a solution to maniuplate images from within Poser Python. It's a Python wrapper for the FreeImage library created with SWIG. The FreeImage library is documented at http://prdownloads.sourceforge.net/freeimage/FreeImage393.pdf. Consider this a "by product" of the Photoshop CS 3 exporter by e frontier. The library is compatible with Poser 7 for Windows and Mac OS X and comes with source code. Since this is derived from the original FreeImage library, it is also placed under the FreeImage license. Therefore, you are allowed to redistribute the library with your scripts as long as you include a copy of the license and acknowledge it in the documentation of the script. I will try to provide a sample script soon.