Hello, I am trying to load an mtl file from python following the C++ code like this:
import vtkmodules.vtkRenderingRayTracing as vtkrt
osprayMtlLibrary = vtkrt.vtkOSPRayMaterialLibrary()
osprayMtlLibrary.ReadFile('../data/vase.mtl');
materialNames=osprayMtlLibrary.GetMaterialNames()
print(materialNames)
but like that GetMaterialNames is not exported to python. I get:
AttributeError: ‘vtkmodules.vtkRenderingRayTracing.vtkOSPRayMateria’ object has no attribute ‘GetMaterialNames’
How can I get the material names from Python?
Thanks