undocumented command flags

undocumented command flags

StephenAnimates
Contributor Contributor
526 Views
2 Replies
Message 1 of 3

undocumented command flags

StephenAnimates
Contributor
Contributor
As I delve further and further into the Mel chasm, I discover that there are undocumented flags for commands. While the specific one that I discovered is the -mi flag for the shelfButton command. This allows you to create an option list (menuitem I can only guess) for a shelf button. This flag is not listed in the command documentation, so other then it's basic usage, I have no idea what options are allowed for this (and have already experimented with a few). While this comes in quite handy, considering that it was nothing more then an accident that I discovered this, I have to wonder what other flags exist.

So first question, how do I get information on these undocumented flags?

Second question, is there a command that can list all the possible flags for a command?
0 Likes
527 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
using your example of the shelfButton command...

help shelfButton;


there is also whatIs, which will also return the path for a maya script's loction on your harddrive....
whatIs shelfButton
0 Likes
Message 3 of 3

StephenAnimates
Contributor
Contributor
Thanks!

I knew about whatIs, but not about the help command. That's exactly what I was looking for. The exact flag I was looking for was displayed. Too bad it also doesn't allow you to get help on the specific tag for the command and get some usage for it. But at least it shows what flags are available.
0 Likes