[VarDef, seeAmt, 0]
[VarDef, seeStr, 0]
[ISubPalette,"ZPlugin:Misc Utilities:Opacity"]
//SLIDER
[ISlider, ZPlugin:Misc Utilities:Opacity:ButtonStrength, 1, 1, 1, 100, Change this amount to set how much the buttons increase or decrease the see-through slider, ]
//INCREASE BUTTON
[IButton,ZPlugin:Misc Utilities:Opacity:Increase Opacity,"Increase opacity by Custom Amount ",
[IConfig,4.8]
[VarSet, seeStr, [Iget, ZPlugin:Misc Utilities:Opacity:ButtonStrength]]
[VarSet, seeAmt, [Iget, See-through]]
[ISet, See-through, (seeAmt + seeStr)]
]
a
//DECREASE BUTTON
[IButton,ZPlugin:Misc Utilities:Opacity:Decrease Opacity,"Decrease opacity by Custom Amount",
[IConfig,4.8]
[VarSet, seeStr, [Iget, ZPlugin:Misc Utilities:Opacity:ButtonStrength]]
[VarSet, seeAmt, [Iget, See-through]]
[If, (seeAmt > (0+seeStr)), [ISet, See-through, (seeAmt -seeStr)], [ISet, See-through, 0]]
]
//End
This will create a new sub-palette (named Opacity) under ZPlugins: Misc Utilities. It will include two buttons (one for increasing the See-Through slider, one for decreasing it), which you can then respectively hotkey to Mousewheel-Up and Mousewheel-Down.
It also includes a strength slider that will let you define the amount that these buttons will affect the See-Through slider by.
Save it as a .txt file (name it something fitting, like Opacity_Buttons.txt). It doesn't matter where you save it, although \ZBrush 4R8\ZScripts might be a decent place for it.
Load it with Zbrush (ZScript: Load)
This will immediately compile the script into a .zsc file, as well as run the script. If you want, you can place this .zsc file into yourZBrush 4R8\ZStartup\ZPlugs64folder so that this plugin will always load when zbrush is launched.
Save it as a .txt file (name it something fitting, like Opacity_Buttons.txt). It doesn't matter where you save it, although \ZBrush 4R8\ZScripts might be a decent place for it.
Load it with Zbrush (ZScript: Load)
This will immediately compile the script into a .zsc file, as well as run the script. If you want, you can place this .zsc file into yourZBrush 4R8\ZStartup\ZPlugs64folder so that this plugin will always load when zbrush is launched.
Hey. Sry with delay but thank you soo much this works. Kudos to you
Replies
It will include two buttons (one for increasing the See-Through slider, one for decreasing it), which you can then respectively hotkey to Mousewheel-Up and Mousewheel-Down.
It also includes a strength slider that will let you define the amount that these buttons will affect the See-Through slider by.
If you want, you can place this .zsc file into your ZBrush 4R8\ZStartup\ZPlugs64 folder so that this plugin will always load when zbrush is launched.
Sry with delay but thank you soo much this works.
Kudos to you