Page 1 of 1

Custom Maya Shader Plugin development

Posted: Thu Jan 31, 2008 10:04 am
by dougal2
Having had a good browse of the sunflow source (jViolet related curiosity), I notice they have a Maya plugin.
It immediately occurred to me that this might be an interesting way to learn about Maya plugins and how building one might benefit us.
Particularly with setting up shaders, it'd be nice to have shaders that have the exact indigo parameters. Well... see attached.

NB: I am not considering this in active development at the moment. Also, due to the binary nature of plugins, and the software I have available to use this is only ever likely to be very experimental.

Posted: Fri Feb 01, 2008 4:20 am
by vux
it will be only for windows?

Posted: Fri Feb 01, 2008 4:24 am
by dougal2
I only have Maya 2008 at home, on a 64 bit machine.

So, it's likely to only ever be specific to Maya 2008, 64bit, windows or linux (providing i can get it to compile under linux).

I have access to Maya 8.5 on 32bit windows at work, but these machines have no c++ compilers installed.

Posted: Fri Feb 01, 2008 8:13 am
by dougal2
On second thoughts, I'm going to learn how to do this in Python instead. It'd then be cross-platform cross-version and won't even need compiling.

Posted: Fri Feb 01, 2008 12:38 pm
by dougal2
update: got the basics working in python as a scripted plugin, and an AETemplate to go with it.

even though this is quite exciting, I really ought to finish jViolet first... :roll:

Posted: Fri Feb 01, 2008 8:17 pm
by vux
good work...

Python is GOOD choise for this type of plugs

Posted: Mon Feb 04, 2008 8:05 am
by dougal2
The custom indigoShader is almost complete. The bump map and exponent map fields are missing because I'm not sure how to implement them yet, and the exporter script needs a whole load of new code to recognise this shader.
However, apart from that the node works fine.
(It doesn't do anything when rendering with Maya though, it just paints objects with a flat colour.)

Re: Custom Maya Shader Plugin development

Posted: Wed Jun 25, 2014 5:08 am
by raul1968
I have maya 2008, I can't afford a newer version. Did a plug-in ever come about?