Batch mode command error?

Batch mode command error?

Anonymous
Not applicable
476 Views
1 Reply
Message 1 of 2

Batch mode command error?

Anonymous
Not applicable
Hi there,

I am trying to make maya generate a fluid cache in command line batch mode.
But I can't seem to be able to pass the mel command.

I have a test mel script:

global proc apan(string $what)
{
print ("Apan says: " + $what + "!\n");
}



And then try to do:

maya -batch -file maya_scene_file-v002.ma -command "apan hohoho";




But this errors and says:

Error: Number of arguments on call to apan does not match number of parameters in procedure definition.



When I change the 'apan' melscript to not take any arguments, it works.

Why won't it accept any arguments?
Any ideas anyone?


cheers
fred
0 Likes
477 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
working rarely with cmdline maya but i would try this:

maya -batch -file maya_scene_file-v002.ma -command "apan(\"hohoho\");"

not sure how maya interprets commandline parameters, but if that does not work try similar things like:

maya -batch -file maya_scene_file-v002.ma -command apan("hohoho");

or

maya -batch -file maya_scene_file-v002.ma -command "apan("hohoho")";
0 Likes