blendify.materials package#

Submodules#

blendify.materials.base module#

class blendify.materials.base.Material[source]#

Bases: ABC

abstract create_material(name: str = 'object_material') Tuple[Material, ShaderNode][source]#
blendify.materials.base.material_property(name: str)[source]#

Creates a property for the material class to get one of the material parameters

Parameters:

name (str) – property name

Returns:

A class property with defines parameter setting and getting behaviour

Return type:

property

blendify.materials.common module#

class blendify.materials.common.GlossyBSDFMaterial(roughness=0.4, distribution='GGX')[source]#

Bases: Material

A class which manages the parameters of GlossyBSDF Blender material. Full docs: https://docs.blender.org/manual/en/latest/render/shader_nodes/shader/glossy.html

create_material(name: str = 'object_material') Tuple[Material, ShaderNodeBsdfGlossy][source]#

Create the Blender material with the parameters stored in the current object

Parameters:

name (str) – a unique material name for Blender

Returns:

Blender material and the

shader node which uses the created material

Return type:

Tuple[bpy.types.Material, bpy.types.ShaderNodeBsdfGlossy]

property distribution#
class blendify.materials.common.PrincipledBSDFMaterial(metallic=0.0, specular=0.3, specular_tint=0.0, roughness=0.4, anisotropic=0.0, anisotropic_rotation=0.0, sheen=0.0, sheen_tint=0.5, clearcoat=0.0, clearcoat_roughness=0.0, ior=1.45, transmission=0.0, transmission_roughness=0.0, emission=(0, 0, 0, 0), emission_strength=0.0, alpha=1.0)[source]#

Bases: Material

A class which manages the parameters of PrincipledBSDF Blender material. Full docs: https://docs.blender.org/manual/en/latest/render/shader_nodes/shader/principled.html

create_material(name: str = 'object_material') Tuple[Material, ShaderNodeBsdfPrincipled][source]#

Create the Blender material with the parameters stored in the current object

Parameters:

name (str) – a unique material name for Blender

Returns:

Blender material and the

shader node which uses the created material

Return type:

Tuple[bpy.types.Material, bpy.types.ShaderNodeBsdfPrincipled]

blendify.materials.common.PrinsipledBSDFMaterial#

alias of PrincipledBSDFMaterial

Module contents#