Reading a mesh's textures?
Blitz3D Forums/Blitz3D Programming/Reading a mesh's textures?
| ||
Hi all, just as the question asks, is there a Codebase code that can read through a mesh, and acquire the names of each texture if the mesh has any? Thanks to all who help! :) |
| ||
M=LoadMesh(YOURMESH) For S=1 To CountSurfaces(M) Surf = GetSurface(M,S) Brush = GetSurfaceBrush(Surf) Tex = GetBrushTexture(Brush) DebugLog TextureName(Tex) Next |
| ||
Remember to free brushes obtained with GetSurfaceBrush! |
| ||
Thanks ALOT, Spike & Yasha! :) |