Home Technical Talk

ZBrush Increment Script

polycounter lvl 8
Offline / Send Message
maximumsproductions polycounter lvl 8
Hey guys! So my problem is that there are incremental keys for "Draw Size" in ZBrush but not for "Focal Shift" and "Z Intensity". I was hoping someone could help me out and baby me by scripting increments for these sliders.

I've searched around on the internet finding 2 sources both of which didn't work for me (for whatever reason) one would work after I pressed the keybind once but anytime after that it did nothing.


[ISubPalette,"Zplugin:Sliders"]

[IButton,"Zplugin:Sliders:Focal Shift UP","Increases Focal Shift by 1 units",
[IFreeze,
[ISet,Zscript:Show Actions,0]
[ISet,Draw: Focal Shift,[IGet,Draw: Focal Shift]+1]
]
,,, 'k']


[IButton,"Zplugin:Sliders:Focal Shift DOWN","Decreases Focal Shift by 1 units",
[IFreeze,
[ISet,Zscript:Show Actions,0]
[ISet,Draw: Focal Shift,[IGet,Draw: Focal Shift]-1]
]
,,, Alt+'k']

[IButton,"Zplugin:Slidersraw Size Up","Increases Draw Size by 1 units",
[IFreeze,
[ISet,Zscript:Show Actions,0]
[ISet,Draw: Draw Size,[IGet,Draw: Draw Size]+1]
]
,,, 'j']

[IButton,"Zplugin:Slidersraw Size Down","Decreases Draw Size by 1 units",
[IFreeze,
[ISet,Zscript:Show Actions,0]
[ISet,Draw: Draw Size,[IGet,Draw: Draw Size]-1]
]
,,, Alt+'j']

[IButton,"Zplugin:Sliders:Z Intensity Up","Increases Intensity by 1 units",
[IFreeze,
[ISet,Zscript:Show Actions,0]
[ISet,Draw: Z Intensity,[IGet,Draw: Z Intensity]+1]
]
,,, 'l']

[IButton,"Zplugin:Sliders:Z Intensity Down","Decreases Intensity by 1 units",
[IFreeze,
[ISet,Zscript:Show Actions,0]
[ISet,Draw: Z Intensity,[IGet,Draw: Z Intensity]-1]
]
,,, Alt+'l']

[IButton,"Zplugin:Sliders:RGB Intensity Up","Increases Intensity by 1 units",
[IFreeze,
[ISet,Zscript:Show Actions,0]
[ISet,Draw: RGB Intensity,[IGet,Draw: RGB Intensity]+1]
]
,,, 'u']

[IButton,"Zplugin:Sliders:RGB Intensity Down","Decreases Intensity by 1 units",
[IFreeze,
[ISet,Zscript:Show Actions,0]
[ISet,Draw: RGB Intensity,[IGet,Draw: RGB Intensity]-1]
]
,,, Alt+'u']

Replies

  • nyx702
    Options
    Offline / Send Message
    So is your only issue with the keybindings? or are you having other issues?

    I have never gotten the hard-coded keybindings to work. Even the scripting guys on the ZBC forums say to not use them. Kinda is sucky but just make your own hotkeys with Ctrl+Alt clicking.
  • maximumsproductions
    Options
    Offline / Send Message
    maximumsproductions polycounter lvl 8
    Not sure why I wasn't notified about this response, :(. daw. Well if you're still there to help. it's basically I think an issue with the script itself. It will increment correctly once (like just 1 unit) and then it doesn't respond.

    Thing is why I want to do this is because I want to link it to my intuos 4 scroll wheel. Though ctrl-alt clicking isn't possible for increments on intensity and focal size because zbrush never added code for it like they did for the Draw Size.

    In the end I guess it isn't that big a deal to just press "u" etc. and click and use the slider but I guess it's just one of the "quality of life" type things :P.
  • cryrid
    Options
    Offline / Send Message
    cryrid interpolator
    Though ctrl-alt clicking isn't possible for increments on intensity and focal size because zbrush never added code for it like they did for the Draw Size.

    I think he means to exclude them from your script. Zbrush will still create the buttons for those actions, and you can just hotkey those afterwards.
  • nyx702
    Options
    Offline / Send Message
    Thanks cryid. Yea that is what I mean. Just remove the hotkeys assignment at the end of your buttons. Hotkey-ing scripted buttons doesn't usually work right either. You should hotkey the buttons as a plugin.

    Run the script. Take the .zsc file it made. Put it into Zstartup>Zplugs. Restart Zbrush. Assign a hotkey to your new buttons.
  • maximumsproductions
    Options
    Offline / Send Message
    maximumsproductions polycounter lvl 8
    Oh wow >.<. I'm sorry.. I tend to find the simplest of tasks the hardest.. even when you explain it clearly to begin with T_T, one of my worst attributes!

    Thanks so much! now I can lay on the couch zbrushing in more comfort! haha.
Sign In or Register to comment.