vrdMDLProperties¶
-
class
vrdMDLProperties
¶
(Inherits vrdSceneObject
)
This class is used to query information about all attributes of a mdl material.
# Query a mdl material by name
mdlMat = vrMaterialService.findMaterial("MaterialName")
# Get the update class to query mdl material properties
properties = mdlMat.getProperties()
# Create an empty object and fill it with dynamic properties
object = PySide6.QtCore.QObject()
properties.update(object)
# Dump all property names. This are the names of all mdl attributes.
for propertyName in object.dynamicPropertyNames():
print(propertyName)
Summary¶
- Functions:
Functions¶
-
vrdMDLProperties.
update
(obj)¶ Fill a QObject with dynamic properties. The dynamic properties of the object correspond to the Mdl attributes. All property IDs can be determined via the list of names of all dynamic properties. The type and value of the Mdl attribute can be determined by querying the property.
Parameters: obj (QObject) – Fill a QObject with dynamic properties.