Export Sampler materials for Unreal, Unity, Godot, Blender and glTF
A material is only useful once it is in your engine. MCP Pro for Sampler exports maps in Sampler's formats and presets, and builds engine layouts itself where Sampler has no preset for them.

recipe_engine_export(engine="unreal", size=256) in the live test: BaseColor, Normal and the packed OcclusionRoughnessMetallic map.Engine layouts
| engine | What you get |
|---|---|
unreal | Sampler's UE preset: BaseColor, Normal (DirectX), OcclusionRoughnessMetallic |
unity_hdrp | HDRP layout with the mask map |
unity | Unity Standard layout |
blender | Blender layout |
godot | albedo, OpenGL normal, ORM for ORMMaterial3D, height |
gltf | baseColor, OpenGL normal, occlusionRoughnessMetallic |
painter | OpenGL PNG maps + .sbsar |
designer | .sbsar + .sbs |
sbsar | .sbsar only |
The Godot and glTF ORM packing is built by the bridge itself.

recipe_photo_to_material(engine="godot", export_size=512) in the live test.Normal-map conventions
Sampler's default export normal maps are DirectX, and so is the Unreal preset. The Unity and Blender presets are OpenGL. The Godot, glTF and Painter layouts flip the green channel themselves to give OpenGL normals. Pick the engine and the convention follows.
recipe_engine_export
recipe_engine_export(engine="godot", directory="D:/game/materials", size=1024)
recipe_engine_export(engine="unreal", directory="D:/ue/Textures", all_assets=True,
name_template="T_{asset}")
One asset (default: the selected one) or, with all_assets=true, every asset into its own subfolder. size must be a power of two. The photo and batch recipes take the same engine argument and export as their last step.
Plain exports and presets
search_export_presets()
export_material(directory="D:/out", format="png", width=2048, height=2048)
export_material(directory="D:/out", format="exr", preset="...")
export_material writes PNG, JPG, TGA, TIF or EXR maps, .sbsar or .sbs, with any of Sampler's export presets, and lists the files it wrote. An exported .sbsar carries the parameters you exposed with expose_parameter, which is handy for MCP Pro for Painter or Designer.
All assets at once
export_all_assets(directory="D:/out", format="png", name_template="{asset}", subfolders=True)
Limits
- Exports accept power-of-two sizes only (the tools validate this).
- Big exports take tens of seconds; raise short client timeouts.
- Tools write to the paths you give them, with your user's rights, like Sampler itself; there is no sandbox.
Get MCP Pro for Sampler
$12 once on itch.io (Early Access), updates included.