1. #1
    New Member Follow User Gallery
    Join Date
    Jan 2016
    Posts
    3

    Default Q: Icon for Zscript or macro

    Hi guys ,how can I create icon for a script or macro?

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

    Default

    You just need to create a PSD file. Any part that is completely black will be transparent in ZBrush so take on the interface color.

    You need to edit the last bit of the macro code so that ZBrush can find the icon:

    //ZBRUSH MACRO for ZBrush 4R8 - save this file to the ZStartup/Macros/Misc folder

    [IButton,???,"Popup info",
    [IShowActions,0]

    //main macro code

    ,,0.3,,"B-icon.psd",0.3]


    In the last line the 0.3 is the width and height of the button, in this case approximately a third of a palette width and height. If you leave those values out then the button will be the same size as the image. The file name must be inside quotes. In the example above the icon file is in the same folder as the macro - if you want to put it elsewhere you'll need to give the path as well. Make sure the commas are in the right place for the macro code!

    Example icon file: B-icon.zip

  3. #3
    New Member Follow User Gallery
    Join Date
    Jan 2016
    Posts
    3

    Default

    Thank you so much

Posting Permissions

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