Created
December 12, 2014 11:00
-
-
Save Hoikohroh/92b5ad9bb9a00acf721c to your computer and use it in GitHub Desktop.
Maxscript:Brush_ToolBox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Brush_ToolBox | |
Ver 20131230 | |
初版 | |
*/ | |
try (destroyDialog Roll_BrushTool) catch() | |
Rollout Roll_BrushTool ""( | |
Group "ブラシサイズ"( | |
button btn_Small "小" width:50 height:30 across:2 | |
button btn_Middle "中" width:50 height:30 | |
-- button btn_Big "大" width:50 height:30 | |
spinner spn_Small "" range:[0,50,0.5] fieldwidth: 40 across:2 | |
spinner spn_Middle "" range:[0,50,2.5] fieldwidth: 40 | |
-- spinner spn_Big "" range:[0,50,5.0] fieldwidth: 40 | |
on btn_Small pressed do thePainterInterface.maxSize = spn_Small.value | |
on btn_Middle pressed do thePainterInterface.maxSize = spn_Middle.value | |
-- on btn_Big pressed do thePainterInterface.maxSize = spn_Big.value | |
) | |
Group "ブラシ/強度"( | |
button btn_Push "押す/引く" width:60 height:25 across:2 | |
spinner spn_Push "" range:[0,10,0.1] fieldwidth: 40 offset:[0,3] | |
button btn_Relax "リラックス" width:60 height:25 across:2 | |
spinner spn_Relax "" range:[0,10,0.25] fieldwidth: 40 offset:[0,3] | |
button btn_Smudge "スマッジ" width:60 height:25 across:2 | |
spinner spn_Smudge "" range:[0,10,4] fieldwidth: 40 offset:[0,3] | |
button btn_Flatten "フラット化" width:60 height:25 across:2 | |
spinner spn_Flatten "" range:[0,10,0.5] fieldwidth: 40 offset:[0,3] | |
button btn_Pinch "ピンチ" width:60 height:25 across:2 | |
spinner spn_Pinch "" range:[0,10,0.5] fieldwidth: 40 offset:[0,3] | |
button btn_Exaggerate "誇張" width:60 height:25 across:2 | |
spinner spn_Exaggerate "" range:[0,10,0.5] fieldwidth: 40 offset:[0,3] | |
button btn_Noise "ノイズ" width:60 height:25 across:2 | |
spinner spn_Noise "" range:[0,10,0.5] fieldwidth: 40 offset:[0,3] | |
on btn_Push pressed do ( | |
PolyToolsPaintDeform.PushPull () | |
thePainterInterface.maxStr = spn_Push.value | |
) | |
on btn_Relax pressed do ( | |
PolyToolsPaintDeform.RelaxSoften () | |
thePainterInterface.maxStr = spn_Relax.value | |
) | |
on btn_Smudge pressed do ( | |
PolyToolsPaintDeform.Smudge () | |
thePainterInterface.maxStr = spn_Smudge.value | |
) | |
on btn__Flatten pressed do ( | |
PolyToolsPaintDeform.Flatten () | |
thePainterInterface.maxStr = spn_Flatten.value | |
) | |
on btn_Pinch pressed do ( | |
PolyToolsPaintDeform.PinchSpread () | |
thePainterInterface.maxStr = spn_Pinch.value | |
) | |
on btn_Exaggerate pressed do ( | |
PolyToolsPaintDeform.Exaggerate () | |
thePainterInterface.maxStr = spn_Exaggerate.value | |
) | |
on btn_Noise pressed do ( | |
PolyToolsPaintDeform.Noise () | |
thePainterInterface.maxStr = spn_Noise.value | |
) | |
) | |
) | |
createDialog Roll_BrushTool 140 325 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment