1. #1
    Senior Member Follow User Gallery
    Join Date
    Mar 2011
    Location
    Schaumburg IL
    Age
    35
    Posts
    382

    Default simple zscript lines not working

    hello, i have a few simple questions.

    Creating a simple button, but i get an error.

    [ISubPalette,"Zplugin:TEST"]


    [IButton,"Zplugin:TEST:512",
    [IPress,Tool:UVMap:512]
    ,,.2]//end button




    I'm also trying to copy a slider from the UVmap subpallet, but it's not coming out right



    [ISlider,"Zplugin:Paint2Poly:UV Map Border",4,1,0,16,"UV Map Overpaint Border"
    [ISet,Tool:UVMap:UVMapBorder,1]
    ,,1]




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

    Default

    You need to make sure that you don't miss out any commas when using zscript commands. With your button you have missed out the pop-up info, and with your slider the comma is missing after the pop-up info. For the slider this means that the "1" for the slider width becomes instead the enabled/disabled parameter.



    [IButton,"Zplugin:TEST:512","Pop-up info about this button",
    [IPress,Tool:UVMap:512]
    ,,.2]//end button


    [ISlider,"Zplugin:Paint2Poly:UV Map Border",4,1,0,16,"UV Map Overpaint Border",
    [ISet,Tool:UVMap:UVMapBorder,[IGet,"Zplugin:Paint2Poly:UV Map Border"]]
    ,,1]

  3. #3
    Senior Member Follow User Gallery
    Join Date
    Mar 2011
    Location
    Schaumburg IL
    Age
    35
    Posts
    382

    Default

    thx a lot, you're a lifesaver

Posting Permissions

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