- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
How do I get a list of the texture slot names? I know about getPropNames and getProperty, but getPropNames returns all properties but I want the names of the just the texture slots.
I can use getNumSubMtls to get the number of slots in a multi sub material, but if I am using a standard or Vray material, then it returns 0, which is what I expect, but I cannot see how to return just the names of the slots, not the textures in them, the actual slot names i.e:
.texmap_diffuse
.texmap_roughness
.texmap_self_illumination
etc.
I am sure I have done this before but I cant find the snippet in my list. I could go through them and add a map to see how the macro recorder shows it, but thats not very programatic.
Pointers welcome. Its going to be so glaringly obvious that I will be embaressed when I find out.
cheers
Solved! Go to Solution.
