Notifications
Clear all

[Closed] Q: list of textures in a scene

how can I gater all the textures in the scene in an array or something?
I can any other objects: geometry, lights, cameras, materials, I can even “unfold” a multi sub object material, but I can’t find any relevant info in the documentation about textures. Bitmap textures, to be more precise.

thanks

6 Replies

take a look at GetClassInstances in the help

Bitmaps = getClassInstances BitmapTexture

“getClassInstances bitmapTexture” gets you a long way, but doesn’t grab all bitmap texture maps (oddly enough.)

you might want to poke at…
http://www.neilblevins.com/soulburnscripts/soulburnscripts.htm

There’s a function used by bitmapCollector in there that goes over almost the entire scene to collect any bitmaps, and thus maps using those.

wow. this was fast…thanks guys.

I jumped a little early yesterday, Neil blevins’ script didn’t really helped me. Is a good script, but I can’t really understand it.
I found <standard>.maps wich work with standard materials and gives all the maps as an array. I can get all types of materials and loop through them, or something. Think It will work?

1 Reply
(@artofsoulburn)
Joined: 11 months ago

Posts: 0

My script calls a number of functions that exist in the sLib.ms file, these functions get as many of the bitmaps in a scene as humanly possible, since the functions that ship with max miss a lot of stuff. So you’d probably want to check out that file for the real meat of the script.

  • Neil

If you need all the maps in a material loop through the .maps array searching if they are classof BitmapTexture.