# BakeSettings(bpy_struct)

base class — `bpy_struct`

class `bpy.types.``BakeSettings`(bpy_struct)

  Bake data for a Scene data-block

  `cage_extrusion`

    Distance to use for the inward ray cast when using selected to active

    Type: | float in [0, inf], default 0.0

  `cage_object`

    Object to use as cage instead of calculating the cage from the active object with cage extrusion

    Type: | string, default “”, (never None)

  `filepath`

    Image filepath to use when saving externally

    Type: | string, default “”, (never None)

  `height`

    Vertical dimension of the baking map

    Type: | int in [4, 10000], default 0

  `image_settings`

    Type: | `ImageFormatSettings`, (readonly, never None)

  `margin`

    Extends the baked result as a post process filter

    Type: | int in [0, 32767], default 0

  `normal_b`

    Axis to bake in blue channel

    Type: | enum in [‘POS_X’, ‘POS_Y’, ‘POS_Z’, ‘NEG_X’, ‘NEG_Y’, ‘NEG_Z’], default ‘POS_X’

  `normal_g`

    Axis to bake in green channel

    Type: | enum in [‘POS_X’, ‘POS_Y’, ‘POS_Z’, ‘NEG_X’, ‘NEG_Y’, ‘NEG_Z’], default ‘POS_X’

  `normal_r`

    Axis to bake in red channel

    Type: | enum in [‘POS_X’, ‘POS_Y’, ‘POS_Z’, ‘NEG_X’, ‘NEG_Y’, ‘NEG_Z’], default ‘POS_X’

  `normal_space`

    Choose normal space for baking

    - `OBJECT` Object, Bake the normals in object space.
    - `TANGENT` Tangent, Bake the normals in tangent space.

    Type: | enum in [‘OBJECT’, ‘TANGENT’], default ‘OBJECT’

  `save_mode`

    Choose how to save the baking map

    - `INTERNAL` Internal, Save the baking map in an internal image data-block.
    - `EXTERNAL` External, Save the baking map in an external file.

    Type: | enum in [‘INTERNAL’, ‘EXTERNAL’], default ‘INTERNAL’

  `use_automatic_name`

    Automatically name the output file with the pass type (external only)

    Type: | boolean, default False

  `use_cage`

    Cast rays to active object from a cage

    Type: | boolean, default False

  `use_clear`

    Clear Images before baking (internal only)

    Type: | boolean, default False

  `use_selected_to_active`

    Bake shading on the surface of selected objects to the active object

    Type: | boolean, default False

  `use_split_materials`

    Split external images per material (external only)

    Type: | boolean, default False

  `width`

    Horizontal dimension of the baking map

    Type: | int in [4, 10000], default 0

Inherited Properties

`bpy_struct.id_data` |

Inherited Functions

`bpy_struct.as_pointer` `bpy_struct.driver_add` `bpy_struct.driver_remove` `bpy_struct.get` `bpy_struct.is_property_hidden` `bpy_struct.is_property_readonly` `bpy_struct.is_property_set` `bpy_struct.items` | `bpy_struct.keyframe_delete` `bpy_struct.keyframe_insert` `bpy_struct.keys` `bpy_struct.path_from_id` `bpy_struct.path_resolve` `bpy_struct.property_unset` `bpy_struct.type_recast` `bpy_struct.values`

References

`RenderSettings.bake` |