Skip to content

Instantly share code, notes, and snippets.

@cecilemuller
Created December 18, 2018 15:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cecilemuller/a6f64759a1b578e6381849c93cc5f874 to your computer and use it in GitHub Desktop.
Save cecilemuller/a6f64759a1b578e6381849c93cc5f874 to your computer and use it in GitHub Desktop.
Marmoset Toolbag: Bake maps properties

Marmoset Toolbag: Bake maps properties

Example:

import mset

baker = mset.findObject("Baker")
baker.loadPreset("All")
baker.getMap("Normals").enabled = True

Surface:

  • Normals
  • Normals (Object)
  • Height
  • Position
  • Curvature
  • Convexity
  • Concavity
  • Thickness
  • Bent Normals
  • Bent Normals (Object)

Lighting:

  • Ambient Occlusion
  • Diffuse Lighting
  • Specular Lighting
  • Complete Lighting

IDs & Masks:

  • Material ID
  • Object ID
  • Group ID
  • UV Island
  • Wireframe
  • Alpha Mask

Material:

  • Albedo
  • Gloss
  • Specular
  • Albedo (Metalness)
  • Roughness
  • Metalness
  • Emissive
  • Transparency
  • Vertex Color

Normals

Type

mset.NormalBakerMap

Properties

Name Property Type Default
Suffix .suffix string "normal"
Enabled .enabled bool True
Dither .dither bool True
Flip X .flipX bool False
Flip Y .flipY bool False
Flip Z .flipZ bool False

Normals (Object)

Type

mset.NormalBakerMap

Properties

Name Property Type Default
Suffix .suffix string "normalobj"
Enabled .enabled bool True
Dither .dither bool True
Flip X .flipX bool False
Flip Y .flipY bool False
Flip Z .flipZ bool False

Height

Type

mset.HeightBakerMap

Properties

Name Property Type Default
Suffix .suffix string "normalobj"
Enabled .enabled bool True
Dither .dither bool True

Properties not found:

  • Inner Distance (default -8.0)
  • Outer Distance (default 4.0)

Position

Type

mset.BakerMap

Properties

Name Property Type Default
Suffix .suffix string "position"
Enabled .enabled bool True

Properties not found:

  • Normalization: Bounding Box, Bounding Sphere (default), Bounding Disabled

Curvature

Type

mset.CurvatureBakerMap

Properties

Name Property Type Default
Suffix .suffix string "curve"
Enabled .enabled bool True
Dither .dither bool True
Normalize .normalize bool True
Strength .strength float 1.0 between 0.0 and 3.0

Convexity

Type

mset.CurvatureBakerMap

Properties

Name Property Type Default
Suffix .suffix string "convex"
Enabled .enabled bool True
Dither .dither bool True
Normalize .normalize bool True
Strength .strength float 1.0 between 0.0 and 3.0

Concavity

Type

mset.CurvatureBakerMap

Properties

Name Property Type Default
Suffix .suffix string "concave"
Enabled .enabled bool True
Dither .dither bool True
Normalize .normalize bool True
Strength .strength float 1.0 between 0.0 and 3.0

Thickness

Type

mset.ThicknessBakerMap

Properties

Name Property Type Default
Suffix .suffix string "thickness"
Enabled .enabled bool True
Dither .dither bool True
Ray Count .rayCount int 256 between 32 and 4096

Bent Normals

Type

mset.BentNormalBakerMap

Properties

Name Property Type Default
Suffix .suffix string "bentnormal"
Enabled .enabled bool True
Dither .dither bool True
Ray Count .rayCount int 256 between 32 and 4096
Flip X .flipX bool False
Flip Y .flipY bool False
Flip Z .flipZ bool False

Properties not found:

  • Ignore Groups (default false)

Bent Normals (Object)

Type

mset.BentNormalBakerMap

Properties

Name Property Type Default
Suffix .suffix string "bentnormalobj"
Enabled .enabled bool True
Dither .dither bool True
Ray Count .rayCount int 256 between 32 and 4096
Flip X .flipX bool False
Flip Y .flipY bool False
Flip Z .flipZ bool False

Properties not found:

  • Ignore Groups (default false)

Ambient Occlusion

Type

mset.AOBakerMap

Properties

Name Property Type Default
Suffix .suffix string "ao"
Enabled .enabled bool True
Dither .dither bool True
Ray Count .rayCount int 256 between 32 and 4096
Floor .floor float 0.8 between 0.0 and 1.0
Floor Occlusion .floorOcclusion bool False
Ignore Groups .ignoreGroups bool True
Uniform .uniform bool True
Two-Sided .twoSided bool False
Add Cavity .addCavity bool True

Diffuse Lighting

Type

mset.LightingBakerMap

Properties

Name Property Type Default
Suffix .suffix string "diffuse"
Enabled .enabled bool True
Dither .dither bool True
Ignore Groups .ignoreGroups bool True
Enable Skybox .enableSkybox bool True

Specular Lighting

Type

mset.LightingBakerMap

Properties

Name Property Type Default
Suffix .suffix string "specular"
Enabled .enabled bool True
Dither .dither bool True
Ignore Groups .ignoreGroups bool True
Enable Skybox .enableSkybox bool True

Complete Lighting

Type

mset.CompleteLightingBakerMap

Properties

Name Property Type Default
Suffix .suffix string "complete"
Enabled .enabled bool True
Dither .dither bool True

Material ID

Type

mset.BakerMap

Properties

Name Property Type Default
Suffix .suffix string "matid"
Enabled .enabled bool True

Object ID

Type

mset.BakerMap

Properties

Name Property Type Default
Suffix .suffix string "objid"
Enabled .enabled bool True

Group ID

Type

mset.BakerMap

Properties

Name Property Type Default
Suffix .suffix string "grpid"
Enabled .enabled bool True

UV Island

Type

mset.UVIslandBakerMap

Properties

Name Property Type Default
Suffix .suffix string "uvisland"
Enabled .enabled bool True
Enable SVG UV Island .enableSVGUVIsland bool False

Wireframe

Type

mset.WireframeBakerMap

Properties

Name Property Type Default
Suffix .suffix string "wireframe"
Enabled .enabled bool True
Line Thickness .lineThickness float 1.0 between 1.0 and 16.0
Vertex Radius .vertexRadius float 1.0 between 1.0 and 16.0
Wireframe Color .wireframeColor [float, float, float] [1.0, 1.0, 1.0] (white) between 0.0 and 1.0

Alpha Mask

Type

mset.BakerMap

Properties

Name Property Type Default
Suffix .suffix string "alphamask"
Enabled .enabled bool True

Albedo

Type

mset.BakerMap

Properties

Name Property Type Default
Suffix .suffix string "albedo"
Enabled .enabled bool True

Gloss

Type

mset.BakerMap

Properties

Name Property Type Default
Suffix .suffix string "gloss"
Enabled .enabled bool True

Specular

Type

mset.BakerMap

Properties

Name Property Type Default
Suffix .suffix string "spec"
Enabled .enabled bool True

Albedo (Metalness)

Type

mset.BakerMap

Properties

Name Property Type Default
Suffix .suffix string "albedometal"
Enabled .enabled bool True

Roughness

Type

mset.BakerMap

Properties

Name Property Type Default
Suffix .suffix string "roughness"
Enabled .enabled bool True

Metalness

Type

mset.MetalnessBakerMap

Properties

Name Property Type Default
Suffix .suffix string "metalness"
Enabled .enabled bool True
Metalness Threshold .metalnessThreshold float 0.5 between 0.0 and 1.0

Emissive

Type

mset.BakerMap

Properties

Name Property Type Default
Suffix .suffix string "emissive"
Enabled .enabled bool True

Transparency

Type

mset.BakerMap

Properties

Name Property Type Default
Suffix .suffix string "alpha"
Enabled .enabled bool True

Vertex Color

Type

mset.BakerMap

Properties

Name Property Type Default
Suffix .suffix string "norvertexcolormal"
Enabled .enabled bool True

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment