VisionOfEra
10-23-2005, 04:43 PM
Hi,all.Its my first post here.
Iam studying the maya API,and I have a question when I see the example about using MSyntax and MArgDatabase in MPxConmmand.They said,
create a static member function like:
static MSyntax newSyntax(){.......}
and in doIt menthod,I need an instance of MArgDatabase,initialize it with this way :
MArgDatabase argData(syntax(),args);
and my question is: What the hell is syntax()?because it seen I have never defined it ---I even have no knowledge about it,Is it a fuction return an MSyntax object?Or an object Maya generated?
I have to guess it just some kind format MayaApi require to do. But I really wanna to know the reason exactly.
Iam studying the maya API,and I have a question when I see the example about using MSyntax and MArgDatabase in MPxConmmand.They said,
create a static member function like:
static MSyntax newSyntax(){.......}
and in doIt menthod,I need an instance of MArgDatabase,initialize it with this way :
MArgDatabase argData(syntax(),args);
and my question is: What the hell is syntax()?because it seen I have never defined it ---I even have no knowledge about it,Is it a fuction return an MSyntax object?Or an object Maya generated?
I have to guess it just some kind format MayaApi require to do. But I really wanna to know the reason exactly.
