Hi there,
first of all I am new to this board. So excuse me if I am accidentially asking my questions in an inappropriate way.
I have got to write an API based Plugin for Maya to Im-/Export an own binary file to/from Maya for my studies. It should just contain (for now) geometry information. So what I am trying to immitate is something similar to the *.bin files from RealFlow to export meshes. I know that there are already tons of solutions but as I said it's part of my studies to implement it on my own.
I already had a look at different tutorials and used some code snippets to get started but now I am standing on front of a lot of different problems. The deadline for this work is pretty tight so som tipps and suggestions would be awesome.
Problem I:
Similar to the code on Rob Bateman's site I used a script and some default options while registering the FileTranslator. Everything within the *.mel file also looks pretty much identical to his tutorial. Loading the custum UI for the export settings works, but it is not using the default values. Can somebody descripe me how Maya interfaces with the MEL file to get an better idea why it is not working?
Here is the important part of the C++ code:
// A set of default options for the exporter
char g_DefaultExportOptions[] = "-pSlider=5;-startFrame=1;-endFrame=24;-useRange=1;-singleMesh=0";
status = plugin.registerFileTranslator("FluidSimExport", "none",
MayaFileTranslator::creator,
(char*)g_OptionScript,
(char*)g_DefaultExportOptions);
Problem II: Is it also possible to tell Maya that the custom settings for the export should ONLY be visible in the export panel. Right now when I am opening the import panel there are exactly the same options which don't make sense during the import process.
Thank you very much for your help. I appreciate it!
Best regards from Stuttgart, Germany.
PS: how do I use tags here in this forum to plug the code into an extra window? 