Skip to content

Custom Material Description

User-defined material. Intended for setting the material of details Piece motor.

Syntax

JS
let m1 = Material.custom(Qt.red) // Method 1
let m2 = new CustomMaterial(Qt.red) // Method 2

Properties of type CustomMaterial

Below is a list of the available properties provided by the CustomMaterial type. Click on a property name to see its detailed description and examples.

Property Description
color The color of the material.

Methods of type CustomMaterial

None

Last update: 14 August 2025, 18:47