It looks like (at least in the file translator part), it checks it once per session.
On Thu, Jun 22, 2017 at 2:27 PM, Michael Boon <[email protected]> wrote: > You can set environment variables from within Maya. The standard Python > way is > import os > os.environ['MAYA_IGNORE_DIALOGS'] = '1' > That will set it for the current Maya session, but not for Windows in > general. I haven't checked to see if Maya takes notice of the change to > this particular variable though. > > On Saturday, 17 June 2017 19:48:40 UTC+10, gnn wrote: >> >> Thanks for your help Oglop and Marcus, >> the way MAYA_IGNORE_DIALOGS 1 can't be run inside a python script no? >> it looks to be in: #C:\Documents and Settings\<username>\My >> Documents\maya\<Version>\scripts >> so it need to reboot maya and be a little too definitive, no? >> there's not another way to said to maya the defaut answer to give for >> this message: (as it need an action)? >> *“Reference file not found”* warning dialog >> >> >> -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/python_inside_maya/1d597a84-3902-4faa-9284- > c51ead564ae7%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/1d597a84-3902-4faa-9284-c51ead564ae7%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Where we have strong emotions, we're liable to fool ourselves - Carl Sagan -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CADHeb2ZUjzxaSrTcgZfRmoP3xu-m8ju%2BwH3jA-aToP7EFXKY-A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
