1. #1
    Member Follow User Gallery
    Join Date
    Oct 2013
    Location
    Germany
    Age
    30
    Posts
    97

    Default ZSripting Help!

    Hey there,

    I have got a few questions on how to tackle these problems through zscript....


    #1 How do i test if a Model has UV's or not ?

    #2 How do i click ok within Script, when the "This is an undoable operation" pops up ?

    #3 How do i make an clickable Note ? Like an advanced Interface or sth ?


    Would be awesome if there is someone who knows this

    Thank you so much

    Greets

  2. #2

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

    Default

    #1 You can use something like this:
    [If,([IExists,Tool:UV Map: Delete UV]&&[IsEnabled,Tool:UV Map: Delete UV]),
    [Note,"This model has UVs"]
    ]


    The IExists checks that there is actually a Delete UV button, as some 3D models don't have it (for example, zspheres). If it's there and enabled it means there are UVs (as they can be deleted).

    #2 Sometimes you can wrap [IKeyPress,13, /*command here*/] around the button press but this only works if pressing enter on the keyboard gets rid of the dialog and continues with the action. For example, using it with Tool>Subtool>Delete won't work because pressing enter cancels the action.

    #3 As Doug says, it's all in the docs!

  4. #4
    Member Follow User Gallery
    Join Date
    Oct 2013
    Location
    Germany
    Age
    30
    Posts
    97

    Default

    Awesome, thank you !


    Wow, so there is really no way to click ok or disable the popup ? That's kind of annoying

    Anyways, thanks

    Greets

Posting Permissions

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