Documentation

Support

Asset Transformer SDK


User Manual

Python API

C# API

Changelog

Discussions

Asset Transformer SDK

Material

Python API types
Read time 6 minutesLast updated 21 hours ago

CoeffOrTexture

Select between:

ColorMaterialInfos

Fields

Type

Name

Default

Description

nameCore.String
colorColorAlpha

ColorOrTexture

Select between:

CustomMaterialPattern

A Custom MaterialPattern is an entity which defines an abstract custom Shader. It is used by the Materials. Base class: core.Entity
Functions accepting this type or a list of this type as a parameter:

Image

An Image is an entity which represents an image in the Image library. Base class: core.Entity
Functions accepting this type or a list of this type as a parameter:

ImageChangeType

Enum of core.Long

Name

Value

ADDED0
REMOVED1
CHANGED2
RESET3
REPLACED4

ImageDefinition

Fields

Type

Name

Default

Description

idImage0
nameCore.String
widthCore.Int0
heightCore.Int0
bitsPerComponentCore.Int0
componentsCountCore.Int0
dataByteList
Functions accepting this type or a list of this type as a parameter:

ImageDefinitionList

List of material.ImageDefinition Functions accepting this type or a list of this type as a parameter:

ImageList

List of material.Image Functions accepting this type or a list of this type as a parameter:

ImpostorMaterialInfos

Fields

Type

Name

Default

Description

nameCore.String
albedoColorOrTexture
normalColorOrTexture
roughnessCoeffOrTexture
aoCoeffOrTexture
depthCoeffOrTexture
nbFramesCore.Int0
fullOctaCore.Boolean1
octaDiameterCore.Double1.0
linearStepsCore.Int30
binaryStepsCore.Int1

Material

The Material is an Entity that contains visual definition that can be applied to the Components of the scene. Base class: core.Entity
Functions accepting this type or a list of this type as a parameter:

MaterialChangeType

Enum of core.Long

Name

Value

CHANGED0
PATTERN_CHANGED1
RELOAD2
DESTROYED3
ICON_CHANGED4
ADDED5
REMOVED6

MaterialDefinition

Fields

Type

Name

Default

Description

nameCore.String
idMaterial0
albedoColorOrTexture
normalColorOrTexture
metallicCoeffOrTexture
roughnessCoeffOrTexture
aoCoeffOrTexture
opacityCoeffOrTexture
emissiveColorOrTexture
Functions accepting this type or a list of this type as a parameter:

MaterialDefinitionList

List of material.MaterialDefinition Functions accepting this type or a list of this type as a parameter:

MaterialFromMapsReturn

Fields

Type

Name

Default

Description

importedTextureCountCore.Int0Number of newly imported textures.
createdMaterialCountCore.Int0Number of newly created materials.
updatedMaterialCountCore.Int0

MaterialList

List of material.Material Functions accepting this type or a list of this type as a parameter:

MaterialListList

List of material.MaterialList Functions accepting this type or a list of this type as a parameter:

MaterialPatternType

Enum of core.Int

Name

Value

CUSTOM0
COLOR1
STANDARD2
UNLIT_TEXTURE3
PBR4
IMPOSTOR5
LINE6

MaterialUserData

Identifier of materials userdata. Base class: core.Ident
Functions accepting this type or a list of this type as a parameter:

PBRMaterialInfos

Fields

Type

Name

Default

Description

nameCore.String
albedoColorOrTexture
normalColorOrTexture
metallicCoeffOrTexture
roughnessCoeffOrTexture
aoCoeffOrTexture
opacityCoeffOrTexture
Functions accepting this type or a list of this type as a parameter:

ResizeFilterMethod

Enum of core.Int

Name

Value

DEFAULT0
BOX1
TRIANGLE2
CUBICBSPLINE3
CATMULLROM4
MITCHELL5
Functions accepting this type or a list of this type as a parameter:

ShaderUniformType

The possible types of shader uniform parameters. Enum of core.Long

Name

Value

INTEGER2
BOOLEAN9
REAL11
COEFF13
POINT323
POINT222
COLOR15
COLOR_ALPHA16
TEXTURE34
COLORORTEXTURE35
COEFFORTEXTURE36
Functions accepting this type or a list of this type as a parameter:

StandardMaterialInfos

Fields

Type

Name

Default

Description

nameCore.String
diffuseColorOrTexture
specularColorOrTexture
ambientColorOrTexture
emissiveColorOrTexture
shininessCoeff0.0
transparencyCoeff0.0

Texture

Fields

Type

Name

Default

Description

imageImage0
channelCore.Int0
offsetPoint2
tillingPoint2

UnlitTextureMaterialInfos

Fields

Type

Name

Default

Description

nameCore.String
textureTexture