To Work with the Max Creation Graph Editor: Basic Usage

This topic describes basic methods for working in the Max Creation Graph Editor.

Note: Most functions in the Max Creation Graph editor are not undoable. Thus it's a generally a good practice to save a graph in a state you might want to restore later.

Add nodes to the graph:

Generate inputs or parameters for a node automatically:

    Most nodes require one or more inputs or parameters. An input is an incoming value that's defined within the graph; a parameter is an incoming value that the user defines from the tool's user interface. Max Creation Graph can create appropriate input and parameter nodes for any node's empty input connectors quickly and easily.

  1. Select the node for which you want to generate inputs or parameters.
  2. Right-click in the graph window and choose Generate Inputs or Generate Parameters.

    Max Creation graph creates compatible nodes and wires them to the appropriate input connectors of the selected nodes.

Duplicate nodes in the graph:

Insert a node into a wire between two other nodes:

Remove a node from the graph:

Work with tabs in the graph window:

Work with group nodes in the graph window:

Wire and unwire nodes:

Delete nodes:

Use and modify a Max Creation Graph package:

    A package is a self-contained MCG graph that includes all dependencies, such as custom compounds. It is designed to simplify the installation and use of a custom tool without having to open the MCG Graph Editor. However, if you want to examine and modify the graph, this procedure shows you how to access it.

  1. Use either of the following menu commands to install a tool. This makes the tool available for use by placing it in the appropriate UI location.
    • Scripting (or Script, with enhanced menus) menu Install Max Creation Graph (.mcg) Package
    • Max Creation Graph Editor File menu Install Max Creation Graph

    After installing the package, you can open and view the graph, for example if you want to modify the tool.

  2. Use the Open Graph command from either menu location.
  3. Navigate to the C:\Users\[username]\Autodesk\3ds Max 2017\Max Creation Graph\Tools\Downloads folder.
  4. Find the .maxtool file with the same name as the tool you installed and open it (for example, PushRandom.maxtool).
    Note: If the tool contains any compounds, you can find them in the \[toolname]\Compounds\ folder within the Downloads folder. Using the same example, this would be the \PushRandom\Compounds\ folder.

Use a procedural graph from within a MAXScript script:

  1. The following script fragment (with comments) lets you load and compile a graph file:
    bridgePath = (symbolicPaths.getPathValue "$max") + @"\Viper3dsMaxBridge.dll" 
    dotNet.loadAssembly bridgePath // load the .NET Assembly that contains the class and method that loads a graph xml
    bridge = dotNetClass "Viper3dsMaxBridge.Main"  // create an instance of the class called Main 
    bridge.CompileGraph <path to the xml graph file> // call Main.CompileGraph() to load and compile a given graph file