The script below is little more than a proof of concept, but it could be used to enable 'gestures' to be used to make adjustments to tools deformation (eg. offset).
It's based on the crop tool code by marcus_civus which was itself influenced by Svengali's crop routine.
If you are curious, please look over the following script and try it out. It's not finished, and probably never will be, but if you know what you're doing and you want fiddle or adapt it into something super, you know what to do.
Pretty spiffy Antimorph Thanks for the source code.
I noticed ZBrush complains with an "insufficient memory" and crashes if you click drag the cursor around for to long. Ending the zscript recording before running the script solves that. I have not looked into the source code for a solution there.
I am sure someone will feel inspired by this little gem. Me? Naah, I have given up on zscripting and now devote my spare hours to knitting sweaters and complaining about the weather.
//Changes:
// .002 A) Loop exits when the cursor moves out of the canvas area
// .002 B) The script must now be launched with the 'J' hotkey.
//Problems:
// .002 1. Crash: TVEyes reported that when the LMB is held down for long periods
// as the cursor is moved around, ZB crashes with "insufficient memory".
// .002 2. The button doesn't work
//Reasons:
// .002 1. No idea.
// .002 2. That's because it's not the canvas and I don't know how to reliably return the buttons id.
//Actions
// .002 1. I reduced the iterations on one of the loops, it's just a stab in the dark
// .002 2. Look into [FindButton]
// .003 C) No longer places the button in the plugin dropdown, debugging
// by reloading with Ctrl-U seems easier if it's just a regular button
// .003 D) Includes quick axis selection, stroke down >100, 200, 300 units to choose
// between x,y,z modifiers, then release and displace left and right to select the value
Nice work. I was wondering about using IModSet to change the axis. You could perhaps combine to get a diagonal though maybe the display wouldn't really work with that idea. Your solution provides a natural feel and is particularly useful for Z direction I think.
Thanks marcus, I think it feels less invasive than the sliders and I'm excited about what that means for the technique I demonstrated in the 'truly deeply' thread. I've been troubled by perspective and placement in ZB for some time, using this with that feels like something of a new frontier for me (at least) in ZB. ZB isn't short of frontiers and hopefully won't be for a long time to come.