PDA

View Full Version : Values not listed in Command Reference and other Probs...


BluesmanI
04-06-2008, 08:15 PM
Hi guys,

is there a special location or command to look after things that aren't explicitly mentioned regarding the extra inputs for commands?

Well seems confusing, so here's an example:


The command is "displayRGBColor" and following i listed the example shown in the command reference.

// Set the background colour to red
displayRGBColor "background" 1 0 0;

// List the current RGB color settings
displayRGBColor -list;
Regarding that i have some questions:

1. Where can i look up what inputs i can use in the quotes (e.g. "background")

2. How do i know, that it is exactly "background" and not "Background" or "bgd" etc.?

3. Some of the commands in the reference lack of information how to use them the correct way, in this example the order of the command-"elements" ('displayRGBColor', 'background', 'values'). So how do know - except of trying myself - how to place the elements?


Many thanx in advance

Blues

GiantG
04-06-2008, 10:45 PM
Hi.

When i need these infos, i parse through all of maya's mel files and look(search in files), where the proc is defined for this command. There you will find all this stuff.
Maya holds tons of these hidden Infos/Flags

goleafsgo
04-06-2008, 10:59 PM
Well, in the case of displayRGBColor the doc's should say that you use -list to list out all of the colors that you can set...so no need to go parsing though Maya's MEL scripts for that one.

BluesmanI
04-06-2008, 11:31 PM
At first thanx for all the replies.


So i if want to know, which elements - or better strings in quotes - I can use I have to search for them in existing scripts? Hmmm, what a pain.


Why isn't there a just another simple but powerful command like "help" which lists all the flags regarding a mel command? Would be also sweet to have such a command for listing stuff like those 'reserved' strings.

strarup
04-08-2008, 07:44 PM
Hi,

well I'm a bit lazy... so I just throw in this link (http://forums.cgsociety.org/showthread.php?t=547460)... at the last post is some info... e.g. 2 programs you can use for parsing the melscripts for text/commands...

happy diving under the motor helmet of maya... :)

kind regards

Strarup

CGTalk Moderation
04-08-2008, 07:44 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.