Page 3 of 3

Re: LuxCore for Maya

Posted: Mon Mar 25, 2019 6:20 pm
by B.Y.O.B.
The pyluxcoredemo script was written for Python 3.
I think you're better off copy/pasting the relevant lines that you want to test and adapting them to Python 2 syntax.

Re: LuxCore for Maya

Posted: Mon Mar 25, 2019 7:42 pm
by motaman
B.Y.O.B. wrote: Mon Mar 25, 2019 6:20 pm The pyluxcoredemo script was written for Python 3.
I think you're better off copy/pasting the relevant lines that you want to test and adapting them to Python 2 syntax.
:) yeah you are right! thnx

Re: LuxCore for Maya

Posted: Mon Mar 25, 2019 7:50 pm
by motaman
Turns out there is a luxcore to maya plugin ,but only works in Maya 2014 (and it has limited functionality )

https://github.com/haggi/OpenMaya/tree/ ... _devmodule

https://vimeo.com/66013765
https://vimeo.com/66013764

i think this is good reference , I will try to contact haggi , the boi who did this and other implementations for maya.
:idea: :!:

Re: LuxCore for Maya

Posted: Mon Mar 25, 2019 8:37 pm
by B.Y.O.B.
Looks to me like a LuxRender to Maya plugin (written for the old API, not the new LuxCore API).
But yes, it's probably a good starting point for the general plugin structure and the Maya side of things.

Re: LuxCore for Maya

Posted: Mon Mar 25, 2019 8:40 pm
by Dade
Looking how old it is, it may have been written for old Lux v1.x API (i.e. it has changed a looooot).

Yes, I looked at the code and it has been written for old Lux. I'm afraid there is very little con salvage.

The code of old official Maya plugin is here https://bitbucket.org/luxrender/luxmaya/src but it is even older.

Re: LuxCore for Maya

Posted: Mon Mar 25, 2019 9:27 pm
by motaman
I think the maya side can be very usefull :idea: MEL doesn't change that much

Re: LuxCore for Maya

Posted: Tue Mar 26, 2019 6:13 pm
by motaman
Okay so I talked with haggi and he told me he doesn`t have time to participate in the LuxCore-Maya project but he sent this link :D

https://github.com/appleseedhq/appleseed-maya

He said they have a better implementation for maya and it can help with the luxcore plugin. :geek: :idea:

Re: LuxCore for Maya

Posted: Wed Mar 27, 2019 6:24 pm
by Mango3
Hi motaman,

You can definitely have a look at our Maya plugin. It is regularly updated and works with all recent Maya versions, including 2019.
Most of it is in C++, though there are also Python scripts for the UI menu, render settings etc.
Not sure how much you will be able to adapt, it is tightly connected to the specifics of appleseed core.

As a start it would be probably much easier to write a basic Python (PyMel) export script than using the C++ API.

Anyway, good to see LuxCore expanding to more dcc applications outside of the Blender eco-system.

Re: LuxCore for Maya

Posted: Wed Mar 27, 2019 10:48 pm
by motaman
Mango3 wrote: Wed Mar 27, 2019 6:24 pm Hi motaman,

You can definitely have a look at our Maya plugin. It is regularly updated and works with all recent Maya versions, including 2019.
Most of it is in C++, though there are also Python scripts for the UI menu, render settings etc.
Not sure how much you will be able to adapt, it is tightly connected to the specifics of appleseed core.

As a start it would be probably much easier to write a basic Python (PyMel) export script than using the C++ API.

Anyway, good to see LuxCore expanding to more dcc applications outside of the Blender eco-system.
:D Thanks a lot for the help, I saw the code in github and it gave me some ideas.
You are right! will stick with PyMel for now :idea: :)