MAXScript Introduction > The MAXScript Editor > MAXScript Editor Menu Options >

# MAXScript Editor - File Menu

| MAXScript Editor - Quick Navigation

The File menu of the Tabbed MAXScript Editor introduced in 3ds Max 2008 contains all file-related commands for creating, opening, closing, exporting and printing files.

- New (CTRL+N)- creates a new script in a new tab. This is equivalent to selectingMain Menu > MAXScript > New Script.If the maximum number of windows has been reached and no more tabs can be opened, you will have to save / close some script to make space for new ones. The default tab limit is set to 10 and can be customized in the range from 1 to 100 via the Properties file.

- Open... (CTRL+O)- open one or more existing files.

  - While the main function of the MAXScript Editor is to edit MAXScript files (.ms, .mcr), it can be used to edit any text files.

  - The File Open dialog is a multi-file dialog and lets you select and load multiple files into multiple tabs at once.

- Open Selected Filename (CTRL+SHIFT+O)- opens the file name selected in the current Editor Window.

  - If the file name is inside a pair of quotation marks, the quotes should not be selected.

  - Both forward slashes /, backslashes \ and double-backslashes \\ are supported, as well as spaces inside the file name.

  - Only one file name can be opened at a time - selecting two lines containing two file names would not open both.

- Close (CTRL+W)- as in most Windows applications, this option closes the current Editor Window (tab). The Editor itself will not be closed - it will stay open with at least one tab showing an Untitled script you can edit.

- Save (CTRL+S)-saves the current script to disk or, if it is still untitled, opens the Save As dialog to specify a file name first.

- Save As... (CTRL+SHIFT+S)-forces the Save As dialog to open to enter a new name even if the script already has a name.

- Save a Copy... (CTRL+SHIFT+P) -opens a Save As dialog and saves a copy of the current script to the specified name without changing the file name of the script loaded in the Editor.

- Revert (CTRL+R)- if the current file has been edited but not saved yet (has a * symbol next to its name), this option lets you revert to the last saved version of the file. You will be prompted about saving the changes to a new file first.

- Export -shows a sub-menu with multiple export options. Each option opens an Export File As... dialog and exports to one of the following formats:

  - As HTML...

  - As RTF...

  - As PDF...

  - As LaTeX...

  - As XML...

- Source Control -shows a sub-menu with source control options which can be used in conjunction with a source control software like Perforce or Subversion (if installed). See MAXScript Editor Properties-Source Control for details on customizing the Editor to use external source control applications.

  - Add File

  - Remove File

  - Check In

  - Check Out

- Page Setup... -opens the Page Setup dialog for printing preparations.

- Print -opens the Windows printer selection dialog and prints the current file.

- List Of Recent Files-the MAXScript Editor will keep a list of recently edited files for easier access. The list of recent editor files is stored in the file MXS_SciTE.recent in the 3ds Max root directory. You can edit this list manually or even using MAXScript to add files to the recent files menu.

- Close Editor- closes the Editor window. NOTE that this only HIDES the Editor but does not remove any opened files currently loaded in it. The Editor can be opened again for further editing of the opened or new files via the Main Menu > MAXScript > MAXScript Editor... menu option or any of the other options for creating new or editing existing files described in MAXScript Tabbed Editor Window. The same menu option can be used to toggle the editor on and off.

Previous Topic

MAXScript Tabbed Editor Window

Next Topic

MAXScript Editor - Edit Menu