Results 1 to 4 of 4

Thread: How to disable Maya data loss warning on Open

  1. #1
    integer
    Join Date
    Dec 2011
    Location
    Chicago
    Posts
    35

    Default How to disable Maya data loss warning on Open



    Hi,

    Does anyone know how to disable the attached Maya warning that can happen on opening a scene?

    "Errors have occurred while reading this scene that may result in data loss. Please check the script Editor for details."

    I have a batch script for Maya scenes that is hanging on this dialog box, awaiting me to press "OK", every time it opens a file. Batch would be much better if I didn't have to babysit the process.

    Thanks !

    Tony
    Attached Images Attached Images

  2. #2
    for loop btribble's Avatar
    Join Date
    Feb 2009
    Location
    SF Bay Area, US
    Posts
    234

    Default

    Use the -prompt flag to suppress all prompts

    -prompt(-pmt) boolean
    This flag controls the display of file prompting dialogs. Some examples of file prompting dialogs include error messages that require user confirmation and missing file reference dialogs. Once this flag is used, every instance of the file command will use the last set value of this flag. Some interactive file operations may post dialogs even when the flag is set to false, but every scripted file command will not display any dialogs when this flag is set to false. The default value is true.

    http://download.autodesk.com/us/maya...ands/file.html

  3. #3
    integer
    Join Date
    Dec 2011
    Location
    Chicago
    Posts
    35

    Default

    Awesome! Thanks for the help!

  4. #4
    Technical Artist
    Join Date
    Sep 2009
    Posts
    39

    Default

    The same also works in Pymel, even though its not in the PyMel openFile documentation (that i could see! )

    pm.openFile(**target**, prompt=False)

Bookmarks

Posting Permissions

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