Search code examples
pythonopenfiledialog3dsmaxmaxscriptreader

getOpenFileName in Python 3DS MAX?


I'm having a hard time to find the function getOpenFileName, which lets you basically seach for a file (OpenFileDialog basically).

I wonder if it's actually in the MaxPlus library and i would like to know if someone else knows if it's somewhere there or if there is any way to call it.

Here's an example in Maxscript:

f = getOpenFileName caption:"File:" \types:"Text file (*.txt)|*.txt|"

Thanks in advance.


Solution

  • Well, maybe:

    MaxPlus.Core.EvalMAXScript('getOpenFileName caption:"File:" \types:"Text file (*.txt)|*.txt|"')
    

    :)

    Seriously: try DoMaxFileSaveAsDlg() from FileManager in MaxPlus

    Reference