Need help with my shader exporter
by Teresa Peters · in Artist Corner · 10/30/2006 (8:58 am) · 2 replies
I am modifying the Maya exporter to also export information for TSE shader files. I want to export it in the format that TSE imports. That part I can probably figure out on my own, but right now I am having trouble with just getting the exporter to run.
I added a button in dtsUtility.mel and the code I am editing starts on line 1118.
I created a new Maya API (C++) project called ShaderExporter.
From the exportShaders function in dtsUtility, I want to call functions in the ShaderExporter API code. How do I do this?
I am posting my code in case any of you can help me finish connecting the MEL to the API code.
In order to build with VS 2005 you must put the contents of the MayaDlls folder into C:\Program Files\Alias\Maya7.0\bin or wherever you keep Maya.
You can download the files at www.vrac.iastate.edu/~tkarr/uploads/ShaderExporter.zip
Put the .mll file in C:\Program Files\Alias\Maya7.0\bin\plug-ins
Put the contents only of the MayaDlls folder into C:\Program Files\Alias\Maya7.0\bin
Put everything else in C:\Documents and Settings\\My Documents\maya\7.0\scripts
Thanks!
I added a button in dtsUtility.mel and the code I am editing starts on line 1118.
I created a new Maya API (C++) project called ShaderExporter.
From the exportShaders function in dtsUtility, I want to call functions in the ShaderExporter API code. How do I do this?
I am posting my code in case any of you can help me finish connecting the MEL to the API code.
In order to build with VS 2005 you must put the contents of the MayaDlls folder into C:\Program Files\Alias\Maya7.0\bin or wherever you keep Maya.
You can download the files at www.vrac.iastate.edu/~tkarr/uploads/ShaderExporter.zip
Put the .mll file in C:\Program Files\Alias\Maya7.0\bin\plug-ins
Put the contents only of the MayaDlls folder into C:\Program Files\Alias\Maya7.0\bin
Put everything else in C:\Documents and Settings\
Thanks!
#2
10/31/2006 (7:36 am)
Yes they are stored in the materials.cs file, but I am trying to make a plugin for Maya that will export the shaders from Maya to the materials.cs file so the programmers/artists don't have as much work
Torque Owner Dave MacIsaac
for what shader maps to what material.