Forum: Poser - OFFICIAL


Subject: DAZ Studio 1.7 is released. Wait until you see what it's like!!

RAMWorks opened this issue on Jul 28, 2007 ยท 152 posts


stewer posted Wed, 01 August 2007 at 2:10 AM

Attached Link: http://docs.python.org/api/api.html

> Quote - Seriously, how d'ya do a combination of Python and C/C++ without adding extra cycles? Doesn't matter what kind of proggie we're talking here: Compiled code will almost always run hella faster than just scripts, and when you're banging algorithms about with a couple dozen thousand vertices, the differences tend to pile up.

Here's a secret: Python code gets compiled. If you've seen .pyc files around, this is compiled Python bytecode that doesn't need to be parsed any more. Granted, it's not as fast as optimized C, but it's pretty fast. > Quote - Even off-loading the more burdensome loads onto an external (faster) binary still requires the translation layer, and startup time, etc. Then there's the whole external proggie vs. native hooks that a compiled plugin enjoys.

There is no need for an external program. If you turn a C or C++ library to a Python extension, it runs in the same address space and same process as Poser itself. Using a scripting language to connect C++ modules is not uncommon: if you examine a Maya installation, you'll notice that it's using MEL for a lot of the UI. > Quote - I guess what I'm getting at is, a full-on SDK for Poser (w/o a big pricetag) would be kind of useful, y'know?

I do agree that a plain C++ SDK would be convenient for those who don't want to learn Python or make a wrapper for C++ code (although its ridiculously simple with SWIG). My point is though that Python is faster than probably most people think it is and it's capable of many things. for a C++ SDK, I can only recommend sending an email to e frontier, including details about what killer plugins you would write if such an SDK were available. If there are enough requests for it, you never know. In any case...this is probably the wrong thread to go further into detail about this - it's about DAZ Studio, so for further discussion we should take this to a new thread if not the Python forum.