1. #1
    New Member Follow User Gallery
    Join Date
    Oct 2015
    Location
    Kiev
    Posts
    9

    Default Question: How disable save window when close project

    Is it possible disable question about saving when project close?

    I try:

    1. Save it from File Pallete before closing
    2. Revert project from File Pallete, but it generate another window ()
    3. Click on OK from macros (but as I understand this action can`t be recorded)




    For project where I work it is important to do it automatically. It should open consequentially a lot of project and export textures and geometries.

    // --- ZBrush/ZScripts/DefaultZScript.txt

    //startup
    [If,1,
    [If,[MemGetSize,startup_mem],,
    [MVarDef,startup_mem,1,0]
    [IPress,Macro:Macros:Test:ExportTextures]
    ]
    ]
    [pd]

    // --- Macros/Test/ExportTextures.txt

    [IButton,???,"Press to run",

    [FileNameSetNext,"D:\Project1.ZPR"][IPress,File:Open]

    // ... Some operations

    [FileNameSetNext,"D:\Project2.ZPR"][IPress,File:Open]

    // ... Some operations

    // ...

    [FileNameSetNext,"D:\ProjectN.ZPR"][IPress,File:Open]

    // ... Some operations

    ]
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	CloseWindow.png 
Views:	144 
Size:	589.4 KB 
ID:	474627  
    Last edited by NickShargan; 10-20-15 at 12:45 AM. Reason: grammar misrake

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

    Default

    You can simulate a keypress of "N" to close the dialog like this:

    [FileNameSetNext,"D:\Project1.ZPR"]
    [IKeyPress,78,[IPress,File:Open]]

  3. #3
    New Member Follow User Gallery
    Join Date
    Oct 2015
    Location
    Kiev
    Posts
    9

    Default

    A lot of thanks! It works.

Posting Permissions

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