Working with 3ds Max

A game-ready lion bust

Keep 3ds Max for the scene, modifiers and rendering, and sculpt in SculptForge: the SculptForge script for 3ds Max sends the selected meshes to SculptForge, and File›3ds Max›Send to 3ds Max sends them back, replacing each Max object's mesh by name. It works through files in a shared folder, the same design as the Maya bridge, on Windows (3ds Max runs there) and wherever SculptForge runs.

The two apps exchange files through one folder that you choose in both, and nothing else: SculptForge opens no ports or connections for this, reads and writes only inside that folder, and never runs anything it finds there. The bridge is off until you choose the folder.

Install the script in 3ds Max#

  1. Download sculptforge_max.py (it is also in the integrations/max folder of the source) and keep it in a folder of your own, for example Documents\SculptForge.
  2. In 3ds Max choose Scripting›Run Script... and pick sculptforge_max.py. A SculptForge menu appears in the menu bar, and the macros Send to SculptForge, Get from SculptForge, Watch SculptForge and Exchange folder... are listed under Customize›Customize User Interface›Toolbars, category SculptForge: drag them onto a toolbar if you like. You only do this once; 3ds Max keeps the menu. (After Revert to Default UI, or to update: run the script again.)

The script is one Python file that uses pymxs, 3ds Max's own Python and the standard library (nothing of Autodesk's ships with SculptForge); it needs 3ds Max 2022 or newer.

Choose the exchange folder#

  1. In SculptForge choose File›3ds Max›Exchange folder... and pick a folder of your own, for example an empty Documents/SculptForge Max.
  2. In 3ds Max choose SculptForge›Exchange folder... and pick the same folder.

File›3ds Max shows the folder; Turn the 3ds Max bridge off forgets it (nothing in it is deleted).

A round trip#

  1. In 3ds Max select one or more meshes and choose SculptForge›Send to SculptForge.
  2. SculptForge loads them by itself. Each mesh becomes a Part with its Max name; a Part with that name already there is replaced (one undo step on that Part).
  3. Sculpt, paint, divide, remesh: anything SculptForge does.
  4. Choose File›3ds Max›Send to 3ds Max. Every visible Part goes.
  5. 3ds Max loads them by itself. Each object that came from Max gets the new mesh and keeps its transform, parent and material; a Part you added in SculptForge becomes a new Editable Poly. The whole Get is one undo step in 3ds Max.

Both sides pick up a send by checking the other side's manifest every 250 ms (its modification time and size only), and only for sends made after the bridge started: something sent earlier waits for a manual Get.

  • In SculptForge, File›3ds Max›Get automatically is on once you choose the folder; turn it off to load only with Get from 3ds Max.
  • In 3ds Max, Watch starts with the first Send, Get or Exchange folder choice in a session; SculptForge›Watch SculptForge turns it off and on, and with it off only Get from SculptForge loads.

What comes across#

3ds MaxSculptForge
ShapeThe mesh as it renders (modifiers on), in world spaceThe Part, as placed in Max's scene
FacesQuads and triangles; n-gons arrive as quads and trianglesTriangles and quads (Wire shows the quads)
UVsMap channel 1UVs
NameThe node's namePart name
AxesZ-upY-up: the script turns the mesh a quarter turn each way, so it looks the same in both
UnitsThe scene's units, not convertedTaken as they are: 1 unit in Max is 1 unit here

On Get, an object replaces the mesh inside the Max node of the same name, so its transform, parent, material assignment and modifiers stay. Editable Poly and Editable Mesh nodes are replaced in place. A parametric object without modifiers (a Box, a Sphere) becomes an Editable Poly. A parametric object with modifiers is skipped and named in the message: collapse it first, or send a copy. All faces of a replaced object get material ID 1 and smoothing group 1, so a Multi/Sub-Object material shows its first slot until you assign IDs again.

Face Groups, the mask and vertex paint stay in SculptForge. Normals, creases, edge weights and skinning stay in Max: send a copy of a skinned mesh. A Part named "Body Hi" arrives as Body_Hi (names in the folder allow letters, digits and _) and comes back to the node Body Hi (or Body_Hi) it was sent from.

The exchange folder#

<folder>/max_to_sculptforge/manifest.json + r<revision>_<k>.obj   written by 3ds Max
<folder>/sculptforge_to_max/manifest.json + r<revision>_<k>.obj   written by SculptForge

The manifest and every check on it are the Maya bridge's (see Working with Maya), with "format": "sculptforge-max" and "sender": "max"; a Maya manifest is refused here and the other way round. Both sides check it strictly before reading anything: at most 256 KiB and 256 objects, every field of the right type, and each file must be a plain .obj name in the manifest's own folder (no folders, no .., no absolute paths, no links). Each send removes the files of the previous one; anything else in the folder is left alone.

The commands are max_send folder=<folder> and max_receive folder=<folder> (see Scripting and automation). There is no Live or Live link for 3ds Max yet.

Troubleshooting#

  • "Nothing has been sent from 3ds Max yet": check that both apps use the same folder (open File›3ds Max in SculptForge; choose SculptForge›Exchange folder... in Max to see or change it).
  • Get in 3ds Max says nothing has been sent: choose File›3ds Max›Send to 3ds Max in SculptForge first.
  • 3ds Max doesn't load a send by itself: Watch starts with the first Send, Get or folder choice in a Max session; choose Get from SculptForge once, and check that Watch SculptForge is on. Watch needs PySide (every 3ds Max 2022+ has one); the Listener prints what it found.
  • A mesh came in as a new object instead of replacing one: Get matches the node's name (letters, digits and _); renaming the node in Max or the Part's Max name breaks the link.
  • "skipped ... modifiers on a parametric object": right-click the object > Convert To > Editable Poly (this collapses its modifiers), or send a copy.

Also in the app: Help > User Guide (Shift+F1). Found a mistake? Edit this page on GitHub.