Page 2 of 3

Re: LuxCore for Maya

Posted: Tue Mar 12, 2019 5:33 pm
by motaman
Acasta69 is the hero we need :!: :!: :!: :!: :!: :!:

Re: LuxCore for Maya

Posted: Tue Mar 12, 2019 5:38 pm
by motaman
Dade wrote: Tue Mar 12, 2019 5:28 pm BTW, interesting initiative: https://www.vfxplatform.com (from the linked AutoDesk thread).
It is! I just found out about it's existance :o :shock:

Re: LuxCore for Maya

Posted: Tue Mar 12, 2019 6:01 pm
by acasta69
Dade wrote: Tue Mar 12, 2019 5:29 pm
motaman wrote: Tue Mar 12, 2019 5:26 pm yeahh! you even have pymel , everything can be accessed using python in maya
So it sounds like it will a lot easier and faster to work with Python. Let's see if Acasta69 can help us :?:
Ok, I'll try in next days

Re: LuxCore for Maya

Posted: Tue Mar 12, 2019 6:11 pm
by motaman
acasta69 wrote: Tue Mar 12, 2019 6:01 pm
Dade wrote: Tue Mar 12, 2019 5:29 pm
motaman wrote: Tue Mar 12, 2019 5:26 pm yeahh! you even have pymel , everything can be accessed using python in maya
So it sounds like it will a lot easier and faster to work with Python. Let's see if Acasta69 can help us :?:
Ok, I'll try in next days
:o :shock: :o ok i will try too ! :D hello Acasta69

Re: LuxCore for Maya

Posted: Wed Mar 13, 2019 12:22 am
by motaman

Re: LuxCore for Maya

Posted: Wed Mar 13, 2019 8:30 am
by Sharlybg
motaman wrote: Wed Mar 13, 2019 12:22 am i will be posting here.

https://github.com/motamano/MayaLuxCore

:) :geek:
Look like a fresh juice on a sunny day :D

Re: LuxCore for Maya

Posted: Wed Mar 13, 2019 2:13 pm
by acasta69
Here you can find binaries for Python 2.7:
https://www.dropbox.com/s/2dl2xobx926qx ... 27.7z?dl=0

Note that there is no pyluxcoretool.exe included.
Also note that numpy is required for pyluxcore to work.

I have tried to run the script that B.Y.O.B. linked here:
viewtopic.php?f=4&t=371&p=4098&hilit=Co ... put#p4116

Even if it gives an error at the end, overall it seems to work and produces correct output, so...
I hope these binaries work for you! :D

I report the error here as reference:

Code: Select all

[LuxCore][5.554] Outputting film: pipeline_contour_lines.png type: 2
[LuxCore][5.741] Outputting film: IRRADIANCE.exr type: 23
[LuxCore][5.819] Outputting film: RAYCOUNT.exr type: 21
[LuxCore][5.866] Outputting film: RGB.exr type: 0
Traceback (most recent call last):
  File "pyluxcore_demo.py", line 154, in <module> main()
  File "pyluxcore_demo.py", line 141, in main
    session.GetFilm().GetOutputFloat(pyluxcore.FilmOutputType.IRRADIANCE, buffer, 0)
RuntimeError: Unsupported data type in Film.GetOutputFloat(): array
[LuxCore][6.022] [Intel(R) HD Graphics 530 Intersect] Memory used for OpenCL image pipeline: 17477Kbytes
This does not happen when run from python 3.5.

Re: LuxCore for Maya

Posted: Wed Mar 13, 2019 2:49 pm
by Dade
acasta69 wrote: Wed Mar 13, 2019 2:13 pm This does not happen when run from python 3.5.
The data type used by the python demo code has been introduced in Python v3.x, you just need to use another data type for v2.7 (https://github.com/LuxCoreRender/LuxCor ... mo.py#L210). pyluxcore.pyd should be fine.

Re: LuxCore for Maya

Posted: Wed Mar 13, 2019 3:28 pm
by acasta69
Dade wrote: Wed Mar 13, 2019 2:49 pm The data type used by the python demo code has been introduced in Python v3.x, you just need to use another data type for v2.7 (https://github.com/LuxCoreRender/LuxCor ... mo.py#L210). pyluxcore.pyd should be fine.
Thanks for explaining Dade :)

Re: LuxCore for Maya

Posted: Mon Mar 25, 2019 6:02 pm
by motaman
acasta69 wrote: Wed Mar 13, 2019 2:13 pm Here you can find binaries for Python 2.7:
https://www.dropbox.com/s/2dl2xobx926qx ... 27.7z?dl=0

Note that there is no pyluxcoretool.exe included.
Also note that numpy is required for pyluxcore to work.

I have tried to run the script that B.Y.O.B. linked here:
viewtopic.php?f=4&t=371&p=4098&hilit=Co ... put#p4116

Even if it gives an error at the end, overall it seems to work and produces correct output, so...
I hope these binaries work for you! :D

I report the error here as reference:

Code: Select all

[LuxCore][5.554] Outputting film: pipeline_contour_lines.png type: 2
[LuxCore][5.741] Outputting film: IRRADIANCE.exr type: 23
[LuxCore][5.819] Outputting film: RAYCOUNT.exr type: 21
[LuxCore][5.866] Outputting film: RGB.exr type: 0
Traceback (most recent call last):
  File "pyluxcore_demo.py", line 154, in <module> main()
  File "pyluxcore_demo.py", line 141, in main
    session.GetFilm().GetOutputFloat(pyluxcore.FilmOutputType.IRRADIANCE, buffer, 0)
RuntimeError: Unsupported data type in Film.GetOutputFloat(): array
[LuxCore][6.022] [Intel(R) HD Graphics 530 Intersect] Memory used for OpenCL image pipeline: 17477Kbytes
This does not happen when run from python 3.5.
I tried to run the script but i get

Code: Select all

File "pyluxcoredemo.py", line 84
   print<"Blob [0]:",endl="")
SyntaxError: invalid syntax

:? I'm running python 2.7