Export Sampler materials for Unreal, Unity, Godot, Blender and glTF

Updated 2026-12-01 · MCP Pro for Sampler 0.1.0

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.

Unreal layout: BaseColor, Normal, OcclusionRoughnessMetallic
recipe_engine_export(engine="unreal", size=256) in the live test: BaseColor, Normal and the packed OcclusionRoughnessMetallic map.

Engine layouts

engineWhat you get
unrealSampler's UE preset: BaseColor, Normal (DirectX), OcclusionRoughnessMetallic
unity_hdrpHDRP layout with the mask map
unityUnity Standard layout
blenderBlender layout
godotalbedo, OpenGL normal, ORM for ORMMaterial3D, height
gltfbaseColor, OpenGL normal, occlusionRoughnessMetallic
painterOpenGL PNG maps + .sbsar
designer.sbsar + .sbs
sbsar.sbsar only

The Godot and glTF ORM packing is built by the bridge itself.

Godot layout: albedo, normal, ORM, height
The Godot layout written by 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

Get MCP Pro for Sampler
$12 once on itch.io (Early Access), updates included.

itch.io · $12

More guides