Porting Pose2lux using PyCarrara to get Luxrender into Carrara?

3drendero3drendero Posts: 2,017
edited December 1969 in Carrara Discussion

I have no idea what I am talking about since my programming skills are limited to 10 rows of C++ code, at best.

The idea is to port the Pose2Lux to Carrara with PyCarrara, to get Luxrender support.

The Pose2Lux python script is compatible with Poser 6 up to Poser Pro 2012, hopefully the same method would work with Carrara, but what do I know...

So far I got PyCarrara installed, it runs its samples and I got all the way to row 7 of Pose2Lux before the first DLL crash:

----------------------------------------------
Traceback (most recent call last):
File "PyCarrara_1EAF672C", line 7, in
File "C:\Python26\Lib\lib-tk\Tkinter.py", line 38, in
import FixTk
File "C:\Python26\Lib\lib-tk\FixTk.py", line 65, in
import _tkinter
ImportError: DLL load failed: Initieringen av en DLL-fil misslyckades.

=== Script execution terminated ===
-----------------------------------------------

Maybe someone with some actual skills can take a look at this, to check if it is possible or just a crazy idea...

Comments

  • 3drendero3drendero Posts: 2,017
    edited October 2012

    Hmm, looks bad, Poser has full Python support since v6, while PyCarrara only has limited Python support?

    More info at http://www.pose2lux.com/

    Renders http://www.google.se/search?q=pose2lux&hl=sv&tbo=d&source=lnms&tbm=isch

    Post edited by 3drendero on
  • 3drendero3drendero Posts: 2,017
    edited December 1969

    Today I got to line 3236 while executing pose2lux in the Python folder after commenting away some lines, stopped at loading poser.Scene, since I don't have Poser and have not started to change over to Carrara.

    Still crashing at line 4 to 7 in Carrara though, cannot load the GUI DLL I think, as above. Attached crash screen.

    Running Win7 64bit, Carrara 8.1.1 Pro 64Bit, PyCarrara 1.0 64bit and Python 2.6.6 64bit.

    Help anyone?

    dllcrash.jpg
    478 x 261 - 50K
  • Philemo_CarraraPhilemo_Carrara Posts: 1,175
    edited December 1969

    3drendero said:
    Today I got to line 3236 while executing pose2lux in the Python folder after commenting away some lines, stopped at loading poser.Scene, since I don't have Poser and have not started to change over to Carrara.

    Still crashing at line 4 to 7 in Carrara though, cannot load the GUI DLL I think, as above. Attached crash screen.

    Running Win7 64bit, Carrara 8.1.1 Pro 64Bit, PyCarrara 1.0 64bit and Python 2.6.6 64bit.

    Help anyone?

    GUI is a very weak point of PyCarrara. I've made several attempts based on several python library and none of them worked. I believe it's linked to to way Python is invoked by PyCarrara.

    More to the point, check that the library you're using is in the path seen by pyCarrara. In the sys libray, you have the path variablethat you can print or even update if necessary (see Python sys library doc.

  • 3drendero3drendero Posts: 2,017
    edited December 1969

    Thank you for the help, checked the Path browser in IDLE, looked good.
    Googled the error and one response mentioned 64bit issues wit Tk, not sure that it really is the problem though.

    Since PyCarrara may be the problem, I started to look at other exporters, looks like LuxSI for Softimage/XSI is complete/updated and written in C++, suitable for the Carrara SDK.
    Need to look further into this, waiting for the Daz support team to upload the SDK now...
    http://www.luxrender.net/wiki/LuXSI_Manual
    http://src.luxrender.net/luxsi
    http://www.luxrender.net/forum/viewtopic.php?f=18&t=8954

  • Philemo_CarraraPhilemo_Carrara Posts: 1,175
    edited December 1969

    3drendero said:
    Thank you for the help, checked the Path browser in IDLE, looked good.
    Googled the error and one response mentioned 64bit issues wit Tk, not sure that it really is the problem though.

    Since PyCarrara may be the problem, I started to look at other exporters, looks like LuxSI for Softimage/XSI is complete/updated and written in C++, suitable for the Carrara SDK.
    Need to look further into this, waiting for the Daz support team to upload the SDK now...
    http://www.luxrender.net/wiki/LuXSI_Manual
    http://src.luxrender.net/luxsi
    http://www.luxrender.net/forum/viewtopic.php?f=18&t=8954

    There is also a cheap solution (it's the one I've chosen) : Buy an an old version of Poser 7 : Cheap Poser 7.
    You'll get your luxrender script working and, as a benefit, a cloth simulation that works, a walk generator, possibility of importing binary morph...
    For $30, I've never regretted it :-)

  • 3drendero3drendero Posts: 2,017
    edited December 1969

    With Poser Debut and Trialpay, it is free to get the pose2lux script running.
    But I would like to stick with Carrara and avoid Poser, already have Daz Studio that has Reality for luxrender.

  • 3drendero3drendero Posts: 2,017
    edited October 2012

    A restart, the Carrara SDK is now here:
    http://carraracafe.com/?p=2346

    The Luxsi 1.1 source is here:
    http://src.luxrender.net/luxsi/file/9d37156d1893

    Free Softimage Mod Tool for testing here:
    http://usa.autodesk.com/adsk/servlet/pc/item?siteID=123112&id=13571320

    Free time limited Softimage XSI trial:
    http://usa.autodesk.com/adsk/servlet/download/item?siteID=123112&id=13572885

    Only thing missing in programming knowledge and time...

    Post edited by 3drendero on
Sign In or Register to comment.