PDA

View Full Version : Displaying a material's diffuse texture...


ApocX
11-22-2005, 08:25 PM
I have a little script that goes through the scene, and outputs the names of all the materials used in the scene to a list box. You can also click on the material name and it will select all the objects currently using that material. I wanted to add a bitmap to the rollout, that would display the diffuse texture that the current material was using...I've tried numerous things, even resorting to scrapping the bitmap field and using the "viewImage()" function - but nothing wants to bring up the diffuse texture...

Any ideas?

magicm
11-22-2005, 10:15 PM
ApocX,

I've attached a simple example that should get you going :)

Cheers,
Martijn

ApocX
11-23-2005, 12:33 AM
Awesome - thanks a bunch, just what i needed!

CGTalk Moderation
11-23-2005, 12:33 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.