Digital Art Zone

 
     
Porting Pose2lux using PyCarrara to get Luxrender into Carrara?
Posted: 15 October 2012 01:57 PM   [ Ignore ]
Active Member
RankRank
Total Posts:  433
Joined  2012-04-01

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 <module>
  File “C:\Python26\Lib\lib-tk\Tkinter.py”, line 38, in <module>
  import FixTk
  File “C:\Python26\Lib\lib-tk\FixTk.py”, line 65, in <module>
  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…

 Signature 

Everything about Carrara: http://www.carraracafe.com/

Profile
 
 
Posted: 15 October 2012 02:38 PM   [ Ignore ]   [ # 1 ]
Active Member
RankRank
Total Posts:  433
Joined  2012-04-01

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

 Signature 

Everything about Carrara: http://www.carraracafe.com/

Profile
 
 
Posted: 16 October 2012 11:08 AM   [ Ignore ]   [ # 2 ]
Active Member
RankRank
Total Posts:  433
Joined  2012-04-01

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?

Image Attachments
dllcrash.jpg
 Signature 

Everything about Carrara: http://www.carraracafe.com/

Profile
 
 
Posted: 18 October 2012 07:24 AM   [ Ignore ]   [ # 3 ]
Member
Avatar
Rank
Total Posts:  223
Joined  2009-04-06
3drendero - 16 October 2012 11:08 AM

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.

Profile
 
 
Posted: 18 October 2012 11:42 AM   [ Ignore ]   [ # 4 ]
Active Member
RankRank
Total Posts:  433
Joined  2012-04-01

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

 Signature 

Everything about Carrara: http://www.carraracafe.com/

Profile
 
 
Posted: 19 October 2012 01:38 AM   [ Ignore ]   [ # 5 ]
Member
Avatar
Rank
Total Posts:  223
Joined  2009-04-06
3drendero - 18 October 2012 11:42 AM

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 grin

Profile
 
 
Posted: 20 October 2012 01:14 PM   [ Ignore ]   [ # 6 ]
Active Member
RankRank
Total Posts:  433
Joined  2012-04-01

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.

 Signature 

Everything about Carrara: http://www.carraracafe.com/

Profile
 
 
Posted: 29 October 2012 02:08 PM   [ Ignore ]   [ # 7 ]
Active Member
RankRank
Total Posts:  433
Joined  2012-04-01

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…

 Signature 

Everything about Carrara: http://www.carraracafe.com/

Profile