Material
Python API types
Read time 6 minutesLast updated 21 hours ago
CoeffOrTexture
Select between:- coeff: core.Coeff
- texture: material.Texture Functions accepting this type or a list of this type as a parameter:
- material.setCoeffOrTextureProperty
ColorMaterialInfos
FieldsType | Name | Default | Description |
|---|---|---|---|
| name | Core.String | ||
| color | ColorAlpha |
ColorOrTexture
Select between:- color: core.Color
- texture: material.Texture Functions accepting this type or a list of this type as a parameter:
- material.setColorOrTextureProperty
CustomMaterialPattern
A Custom MaterialPattern is an entity which defines an abstract custom Shader. It is used by the Materials. Base class: core.Entity- material.addUniformProperty
- material.getUniformPropertyType
- material.setFragmentShader
- material.setVertexShader
- core.cloneEntity
- core.deleteEntities
- core.entityExists
- core.getEntityType
- core.getEntityTypeString
- core.addCustomProperties
- core.addCustomProperty
- core.getProperties
- core.getProperty
- core.getPropertyInfo
- core.hasCustomProperty
- core.hasProperty
- core.listProperties
- core.listPropertiesBatch
- core.removeCustomProperty
- core.setProperties
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
- scene.linkPropertyToAnimation
- scene.unlinkPropertyToAnimation
Image
An Image is an entity which represents an image in the Image library. Base class: core.Entity- algo.convertNormalMap
- algo.fillNormalMap
- algo.orientNormalMap
- material.convertFloat32To8BitsImage
- material.convertHeightMapToNormalMap
- material.exportImage
- material.fillUnusedPixels
- material.filterAO
- material.getImageDefinition
- material.getImageDefinitions
- material.getImagePixelColor
- material.getImageSize
- material.getImagesSizes
- material.remapIndexMap
- material.resizeImage
- material.updateImageFromDefinition
- material.updateImagesFromDefinitions
- scene.mergeImages
- core.cloneEntity
- core.deleteEntities
- core.entityExists
- core.getEntityType
- core.getEntityTypeString
- core.addCustomProperties
- core.addCustomProperty
- core.getProperties
- core.getProperty
- core.getPropertyInfo
- core.hasCustomProperty
- core.hasProperty
- core.listProperties
- core.listPropertiesBatch
- core.removeCustomProperty
- core.setProperties
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
- scene.linkPropertyToAnimation
- scene.unlinkPropertyToAnimation
ImageChangeType
Enum of core.LongName | Value |
|---|---|
| ADDED | 0 |
| REMOVED | 1 |
| CHANGED | 2 |
| RESET | 3 |
| REPLACED | 4 |
ImageDefinition
FieldsType | Name | Default | Description |
|---|---|---|---|
| id | Image | 0 | |
| name | Core.String | ||
| width | Core.Int | 0 | |
| height | Core.Int | 0 | |
| bitsPerComponent | Core.Int | 0 | |
| componentsCount | Core.Int | 0 | |
| data | ByteList |
- material.createImageFromDefinition
- material.createImagesFromDefinitions
- material.updateImageFromDefinition
- material.updateImagesFromDefinitions
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:- material.filterAO
- material.getImageDefinitions
- material.getImagesSizes
- material.remapIndexMap
- material.updateImagesFromDefinitions
- scene.mergeImages
ImpostorMaterialInfos
FieldsType | Name | Default | Description |
|---|---|---|---|
| name | Core.String | ||
| albedo | ColorOrTexture | ||
| normal | ColorOrTexture | ||
| roughness | CoeffOrTexture | ||
| ao | CoeffOrTexture | ||
| depth | CoeffOrTexture | ||
| nbFrames | Core.Int | 0 | |
| fullOcta | Core.Boolean | 1 | |
| octaDiameter | Core.Double | 1.0 | |
| linearSteps | Core.Int | 30 | |
| binarySteps | Core.Int | 1 |
Material
The Material is an Entity that contains visual definition that can be applied to the Components of the scene. Base class: core.Entity- algo.filletMesh
- algo.removeHoles
- algo.remeshSurfacicHoles
- cad.setFaceMaterial
- cad.setEdgeMaterial
- material.areOpaques
- material.copyMaterial
- material.getAllImages
- material.getColorMaterialInfos
- material.getCustomMaterialPattern
- material.getImpostorMaterialInfos
- material.getMaterialDefinition
- material.getMaterialDefinitions
- material.getMaterialMainColor
- material.getMaterialPattern
- material.getMaterialPatternType
- material.getPBRMaterialInfos
- material.getStandardMaterialInfos
- material.getUnlitTextureMaterialInfos
- material.isOpaque
- material.makeMaterialNamesUnique
- material.setCoeffOrTextureProperty
- material.setColorAlphaProperty
- material.setColorOrTextureProperty
- material.setMaterialMainColor
- material.setMaterialPattern
- material.setPBRMaterialInfos
- material.getMaterialUserData
- material.getMultipleMaterialUserData
- material.hasMaterialUserData
- material.hasMultipleMaterialUserData
- material.setMaterialUserData
- material.setMultipleMaterialUserData
- material.unsetMaterialUserData
- material.unsetMultipleMaterialUserData
- scene.convertMaterialsToColor
- scene.convertMaterialsToPBR
- scene.mergeMaterials
- scene.replaceMaterial
- scene.setOccurrenceMaterial
- scene.findOccurrencesByMaterial
- scene.findPartOccurrencesByActiveMaterial
- scene.findPartOccurrencesByVisibleMaterial
- scene.setSubpartMaterial
- scene.setSubpartMaterials
- scene.addMeshToAnnotation
- core.cloneEntity
- core.deleteEntities
- core.entityExists
- core.getEntityType
- core.getEntityTypeString
- core.addCustomProperties
- core.addCustomProperty
- core.getProperties
- core.getProperty
- core.getPropertyInfo
- core.hasCustomProperty
- core.hasProperty
- core.listProperties
- core.listPropertiesBatch
- core.removeCustomProperty
- core.setProperties
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
- scene.linkPropertyToAnimation
- scene.unlinkPropertyToAnimation
MaterialChangeType
Enum of core.LongName | Value |
|---|---|
| CHANGED | 0 |
| PATTERN_CHANGED | 1 |
| RELOAD | 2 |
| DESTROYED | 3 |
| ICON_CHANGED | 4 |
| ADDED | 5 |
| REMOVED | 6 |
MaterialDefinition
FieldsType | Name | Default | Description |
|---|---|---|---|
| name | Core.String | ||
| id | Material | 0 | |
| albedo | ColorOrTexture | ||
| normal | ColorOrTexture | ||
| metallic | CoeffOrTexture | ||
| roughness | CoeffOrTexture | ||
| ao | CoeffOrTexture | ||
| opacity | CoeffOrTexture | ||
| emissive | ColorOrTexture |
MaterialDefinitionList
List of material.MaterialDefinition Functions accepting this type or a list of this type as a parameter:MaterialFromMapsReturn
FieldsType | Name | Default | Description |
|---|---|---|---|
| importedTextureCount | Core.Int | 0 | Number of newly imported textures. |
| createdMaterialCount | Core.Int | 0 | Number of newly created materials. |
| updatedMaterialCount | Core.Int | 0 |
MaterialList
List of material.Material Functions accepting this type or a list of this type as a parameter:- material.areOpaques
- material.getAllImages
- material.getMaterialDefinitions
- material.makeMaterialNamesUnique
- material.getMultipleMaterialUserData
- material.hasMultipleMaterialUserData
- material.setMultipleMaterialUserData
- material.unsetMultipleMaterialUserData
- scene.convertMaterialsToColor
- scene.convertMaterialsToPBR
- scene.mergeMaterials
- scene.setSubpartMaterials
- scene.setSubpartVariantMaterialsList
MaterialListList
List of material.MaterialList Functions accepting this type or a list of this type as a parameter:MaterialPatternType
Enum of core.IntName | Value |
|---|---|
| CUSTOM | 0 |
| COLOR | 1 |
| STANDARD | 2 |
| UNLIT_TEXTURE | 3 |
| PBR | 4 |
| IMPOSTOR | 5 |
| LINE | 6 |
MaterialUserData
Identifier of materials userdata. Base class: core.Ident- material.getMaterialUserData
- material.getMultipleMaterialUserData
- material.hasMaterialUserData
- material.hasMultipleMaterialUserData
- material.setMaterialUserData
- material.setMultipleMaterialUserData
- material.unsetMaterialUserData
- material.unsetMultipleMaterialUserData
- material.unsubscribeFromMaterialUserData
PBRMaterialInfos
FieldsType | Name | Default | Description |
|---|---|---|---|
| name | Core.String | ||
| albedo | ColorOrTexture | ||
| normal | ColorOrTexture | ||
| metallic | CoeffOrTexture | ||
| roughness | CoeffOrTexture | ||
| ao | CoeffOrTexture | ||
| opacity | CoeffOrTexture |
ResizeFilterMethod
Enum of core.IntName | Value |
|---|---|
| DEFAULT | 0 |
| BOX | 1 |
| TRIANGLE | 2 |
| CUBICBSPLINE | 3 |
| CATMULLROM | 4 |
| MITCHELL | 5 |
ShaderUniformType
The possible types of shader uniform parameters. Enum of core.LongName | Value |
|---|---|
| INTEGER | 2 |
| BOOLEAN | 9 |
| REAL | 11 |
| COEFF | 13 |
| POINT3 | 23 |
| POINT2 | 22 |
| COLOR | 15 |
| COLOR_ALPHA | 16 |
| TEXTURE | 34 |
| COLORORTEXTURE | 35 |
| COEFFORTEXTURE | 36 |
StandardMaterialInfos
FieldsType | Name | Default | Description |
|---|---|---|---|
| name | Core.String | ||
| diffuse | ColorOrTexture | ||
| specular | ColorOrTexture | ||
| ambient | ColorOrTexture | ||
| emissive | ColorOrTexture | ||
| shininess | Coeff | 0.0 | |
| transparency | Coeff | 0.0 |
Texture
FieldsType | Name | Default | Description |
|---|---|---|---|
| image | Image | 0 | |
| channel | Core.Int | 0 | |
| offset | Point2 | ||
| tilling | Point2 |
UnlitTextureMaterialInfos
FieldsType | Name | Default | Description |
|---|---|---|---|
| name | Core.String | ||
| texture | Texture |