1. #1
    Senior Member Follow User Gallery
    Join Date
    Sep 2002
    Location
    UK
    Posts
    828

    Default Gestural deformations - concept

    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.
    Attached Files Attached Files

  2. #2
    Senior Member Follow User Gallery
    Join Date
    Jul 2002
    Location
    Copenhagen
    Age
    50
    Posts
    2,561

    Default

    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.
    Last edited by TVeyes; 01-31-07 at 02:26 PM.
    Mark

  3. #3
    Senior Member Follow User Gallery
    Join Date
    Sep 2002
    Location
    UK
    Posts
    828

    Default

    Thanks for the insight TVEyes, I don't want to be caught out by that.

    I'll update the thing myself at a snails pace and put any updates here.

  4. #4
    Senior Member Follow User Gallery
    Join Date
    Sep 2002
    Location
    UK
    Posts
    828

    Default

    //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]

    //Requests
    // .002 B) Toggle would be good
    Attached Files Attached Files
    Last edited by Antimorph; 01-31-07 at 03:14 PM.

  5. #5
    Senior Member Follow User Gallery
    Join Date
    Sep 2002
    Location
    UK
    Posts
    828

    Default Easy axis selection

    // .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
    Attached Files Attached Files

  6. #6
    Moderator Follow User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    11,462

    Default

    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.

  7. #7
    Senior Member Follow User Gallery
    Join Date
    Sep 2002
    Location
    UK
    Posts
    828

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •