unreal.UsdMaterialBakingOptions

class unreal.UsdMaterialBakingOptions(properties: None = [], default_texture_size: IntPoint = Ellipsis, constant_color_as_single_value: bool = False, textures_dir: DirectoryPath = Ellipsis)

Bases: StructBase

Usd Material Baking Options

C++ Source:

  • Plugin: USDImporter

  • Module: USDExporter

  • File: USDAssetOptions.h

Editor Properties: (see get_editor_property/set_editor_property)

  • constant_color_as_single_value (bool): [Read-Write] When this is true and a baked texture contains a single flat color we will write out that color value directly on the USD layer and skip generating a texture

  • default_texture_size (IntPoint): [Read-Write] Size of the baked texture for all properties that don’t have a CustomSize set

  • properties (Array[PropertyEntry]): [Read-Write] Properties which are supposed to be baked out for the material

  • textures_dir (DirectoryPath): [Read-Write] Where baked textures are placed. Intentionally not a config as it’s heavily dependent on where the stage is

property constant_color_as_single_value: bool

[Read-Write] When this is true and a baked texture contains a single flat color we will write out that color value directly on the USD layer and skip generating a texture

Type:

(bool)

property default_texture_size: IntPoint

[Read-Write] Size of the baked texture for all properties that don’t have a CustomSize set

Type:

(IntPoint)

property properties: None

[Read-Write] Properties which are supposed to be baked out for the material

Type:

(Array[PropertyEntry])

property textures_dir: DirectoryPath

[Read-Write] Where baked textures are placed. Intentionally not a config as it’s heavily dependent on where the stage is

Type:

(DirectoryPath)