Hello,
I want to create a toggle shortcut for this button, I can't find a way to do it. Even if I copy the mel script, its not a toggle.
string $currentPanel = `getPanel -withFocus`;
int $checkHL = `modelEditor -q -sel $currentPanel`;
if ($checkHL == 0){
modelEditor -e -sel 1 $currentPanel;
}
else{
modelEditor -e -sel 0 $currentPanel;
};
drag it to your shelf or assign it to a hotkey
tsungyuw said: string $currentPanel = `getPanel -withFocus`;int $checkHL = `modelEditor -q -sel $currentPanel`;if ($checkHL == 0){ modelEditor -e -sel 1 $currentPanel; }else{ modelEditor -e -sel 0 $currentPanel;};drag it to your shelf or assign it to a hotkey
Replies
string $currentPanel = `getPanel -withFocus`;
int $checkHL = `modelEditor -q -sel $currentPanel`;
if ($checkHL == 0){
modelEditor -e -sel 1 $currentPanel;
}
else{
modelEditor -e -sel 0 $currentPanel;
};
drag it to your shelf or assign it to a hotkey