# How to access the texture on actors loaded by GLFTImporter

**URL:** https://discourse.vtk.org/t/how-to-access-the-texture-on-actors-loaded-by-glftimporter/7673
**Category:** Support
**Created:** [January 18, 2022, 5:36pm UTC](https://discourse.vtk.org/t/how-to-access-the-texture-on-actors-loaded-by-glftimporter/7673 "2022-01-18T17:36:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![xtecox](https://discourse.vtk.org/user_avatar/discourse.vtk.org/xtecox/32/4567_2.png) [@xtecox](https://discourse.vtk.org/u/xtecox)
#### Post date: [January 18, 2022, 5:36pm UTC](https://discourse.vtk.org/t/how-to-access-the-texture-on-actors-loaded-by-glftimporter/7673/1 "2022-01-18T17:36:06Z")

</div>

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
