Forum: Poser Python Scripting


Subject: How-to for getting PyCharm to work with Poser?

evanhem opened this issue on Aug 31, 2020 ยท 13 posts


adp001 posted Wed, 02 September 2020 at 1:50 PM

AHHHH - I missunderstood you.

What you did wrong is to import POSER_FAKE while you actually needed poser!

use this:

try:
    import poser
except ImportError:
    import POSER_FAKE as poser

With this the external lib POSER_FAKE is only imported if the "real" poser is not available. And that is exactly what you want.