GameQ
08-30-2008, 04:14 AM
Sorry that this is such a dumb topic, but I cant find the answer any where. I'm a C/C++ programmer and have created a bunch of parsers that deal with .ma files. I'm sick and tired of clicking on and them and passing in the full file name of the .ma.
So I come here for your knowledge. I have read some tutorials on MEL scripting so don't need to learn the syntax, But I can not find a good documention of all MEL commands anywhere...
I need:
Command to save the scene.
Command that returns the full file name
Command to call an external .exe
my pseudo code would be something like:
proc parseFile
{
save_file();
$str = getFullPathName();
run("parser.exe "+str); //runs parser.exe with single command line argument str
}
Hell if someone just want to write out that proc for me, That be cool too!
hmmm, while I'm at...
I'm trying to use maya as a AI Path creator. Is there a way draw lines (preferably of different colors) from one object to another? Something like:
proc createAIPaths()
{
$selctedObjects[] = getAllSectedObjects();
if(selctedObjects != 2)
return; // get out, can only create a line between two objects
drawLine(selctedObjects[0], selctedObjects[1]);
}
haha, I bet the last line is alot more then just that! Thanks for any and all help. We programmer dudes don't know everything :)
~GameQ
So I come here for your knowledge. I have read some tutorials on MEL scripting so don't need to learn the syntax, But I can not find a good documention of all MEL commands anywhere...
I need:
Command to save the scene.
Command that returns the full file name
Command to call an external .exe
my pseudo code would be something like:
proc parseFile
{
save_file();
$str = getFullPathName();
run("parser.exe "+str); //runs parser.exe with single command line argument str
}
Hell if someone just want to write out that proc for me, That be cool too!
hmmm, while I'm at...
I'm trying to use maya as a AI Path creator. Is there a way draw lines (preferably of different colors) from one object to another? Something like:
proc createAIPaths()
{
$selctedObjects[] = getAllSectedObjects();
if(selctedObjects != 2)
return; // get out, can only create a line between two objects
drawLine(selctedObjects[0], selctedObjects[1]);
}
haha, I bet the last line is alot more then just that! Thanks for any and all help. We programmer dudes don't know everything :)
~GameQ
