Hi, im loading an glft using the glftimporter
importer = vtkGLTFImporter()
importer.SetFileName("/home/thiago/Downloads/factory_3d_model_1/scene.gltf")
importer.SetRenderWindow(renWin)
importer.Update()
after loading I’m looping on the renderer to get all actors and print the texture, but I’m getting all None. I can see the texture rendered on my object.
it = ren.GetActors()
it.InitTraversal()
numOfActors = it.GetNumberOfItems()
for i in range(numOfActors-1):
act = it.GetNextActor()
print(act.GetTexture())
What am I doing wrong? What would be the right way to access the vtkTexture instance associated to the actor?
Thanks in advance
Thiago N Mourao