diff options
| author | Ben Marsh <[email protected]> | 2019-10-22 09:07:59 -0400 |
|---|---|---|
| committer | Ben Marsh <[email protected]> | 2019-10-22 09:07:59 -0400 |
| commit | bd0027e737c6512397f841c22786274ed74b927f (patch) | |
| tree | f7ffbdb8f3741bb7f24635616cc189cba5cb865c /scripts/shaveBrushSetModeButton.mel | |
| download | shave-and-a-haircut-bd0027e737c6512397f841c22786274ed74b927f.tar.xz shave-and-a-haircut-bd0027e737c6512397f841c22786274ed74b927f.zip | |
Adding Shave-and-a-Haircut 9.6
Diffstat (limited to 'scripts/shaveBrushSetModeButton.mel')
| -rw-r--r-- | scripts/shaveBrushSetModeButton.mel | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/scripts/shaveBrushSetModeButton.mel b/scripts/shaveBrushSetModeButton.mel new file mode 100644 index 0000000..957a05d --- /dev/null +++ b/scripts/shaveBrushSetModeButton.mel @@ -0,0 +1,49 @@ +// Shave and a Haircut +// (c) 2019 Epic Games +// US Patent 6720962 + +global string $shaveBrushSetModeButtons_fileVersion = "$Revision$"; + + +global proc shaveBrushSetModeButton(int $mode) +{ + // + // If one of the symbol boxes exist, assume that they all do. + // + if (`symbolCheckBox -exists shaveBrushTransBox`) + { + symbolCheckBox -e -v false shaveBrushTransBox; + symbolCheckBox -e -v false shaveBrushScaleBox; + symbolCheckBox -e -v false shaveBrushRotCursorBox; + symbolCheckBox -e -v false shaveBrushStandBox; + symbolCheckBox -e -v false shaveBrushPuffBox; + symbolCheckBox -e -v false shaveBrushClumpBox; + + switch ($mode) + { + case 0: + symbolCheckBox -e -v true shaveBrushTransBox; + break; + + case 1: + symbolCheckBox -e -v true shaveBrushScaleBox; + break; + + case 2: + symbolCheckBox -e -v true shaveBrushRotCursorBox; + break; + + case 3: + symbolCheckBox -e -v true shaveBrushStandBox; + break; + + case 4: + symbolCheckBox -e -v true shaveBrushPuffBox; + break; + + case 5: + symbolCheckBox -e -v true shaveBrushClumpBox; + break; + } + } +} |