1. #1
    Senior Member User Gallery
    Join Date
    Apr 2004
    Location
    Eidos Montreal
    Posts
    2,758

    Default Autoload Zscript

    Is there a way to See my script autoloaded in the zpluggin tab?
    And to be able to move the button somewhere else in my custome coonfiguration...
    Sébastien Legrain A.K.A Sebcesoir

    http://sebleg.free.fr


    Yeahh!!! Thx pixologic, it's damn cool to have Zbrush caps!

  2. #2
    Moderator User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    7,729

    Default

    In order to autoload a zscript it has to be coded as a plugin and the plugin file (.zsc) has to be in the ZStartup\ZPlugs folder. The code for a plugin follows this form:
    Code:
    [ISubPalette, "Zplugin:My Plugins"] //creates a new subpalette in the ZPlugin palette
    
    [IButton,"ZPlugin:My Plugins:Name Of Button",//note subpalette included in button name
    "Popup text for button",
    ...button code...
    ,,152,,,19]//button width 152 pixels, height 19
    (The size of the button can be changed to whatever you wish.)

    If you follow this method your button will load on start up and can be dragged onto the interface. Save the configuration (Shift+Ctrl+i) and it will stay where you put it.

    HTH,

  3. #3
    Senior Member User Gallery
    Join Date
    Apr 2004
    Location
    Eidos Montreal
    Posts
    2,758

    Default

    Thanks a lot Marcus!
    Sébastien Legrain A.K.A Sebcesoir

    http://sebleg.free.fr


    Yeahh!!! Thx pixologic, it's damn cool to have Zbrush caps!

Posting Permissions

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