Velocamonkey
07-06-2003, 07:34 PM
Hi I saw a post a while back showing how you could assign numerous commands
depending upon what was selected to one hotkey:
-----------------
if ( size(`filterExpand -sm X`) > 0 )
{
COMMAND
}
where X is a number which define different selection. See the "Help > MEL Command References"
and look for "filterExpand". Theres a list of numbers you can replace with X.
And COMMAND is the command you want to execute.
-----------------
I'm completely new to Maya and indeed MEL so you can understand why I don't understand this.
This sounds really valuable to speed up my workflow so I was wondering if someone could
explain how I go about using this?
I assume it means, for example, that if my hotkey was k then when I press k when
a polygon face is selected I can have something different happen compared to if I were
to do the same when a vetex was selected? Is this what it does?
How would I do the example I have mentioned with the above script? And how do I actually
use the script, ie tie it to that hotkey? Thanks.
depending upon what was selected to one hotkey:
-----------------
if ( size(`filterExpand -sm X`) > 0 )
{
COMMAND
}
where X is a number which define different selection. See the "Help > MEL Command References"
and look for "filterExpand". Theres a list of numbers you can replace with X.
And COMMAND is the command you want to execute.
-----------------
I'm completely new to Maya and indeed MEL so you can understand why I don't understand this.
This sounds really valuable to speed up my workflow so I was wondering if someone could
explain how I go about using this?
I assume it means, for example, that if my hotkey was k then when I press k when
a polygon face is selected I can have something different happen compared to if I were
to do the same when a vetex was selected? Is this what it does?
How would I do the example I have mentioned with the above script? And how do I actually
use the script, ie tie it to that hotkey? Thanks.
