Notifications
Clear all

[Closed] Differentiating between map types

Hi

I’m hoping this is a simple one, but I can’t seem to find an answer anywhere.
I need to differentiate between standard, vray and arch and design maps using maxscript.

The closest I’ve got so far is using:
classof(getSubTexmap CurrentMaterial 1)
but this only returns the name of the map and not it’s type…

Thanks for the help!

5 Replies
 MZ1

what you mean by map types?

Apologies, maybe I wasn’t clear.

In the material editor, all the maps seems to be organised by renderer. So you have the standard, vray, iray, mental ray categories depending on what renderer you have assigned at the time.

Is there a way to determine what map is currently applied to a scene material? For example, a check to see If you have a standard map or a vray map applied to a vray material.

Thanks

 MZ1

classof works very well, it depends where you want to put your map, for example:

Mat = Standardmaterial()
Mat.diffuseMap = Noise()
classof Mat.diffuseMap

You can check the .category property of the map (note that standard maps won’t return #standard, instead it would be #2D, #3D, #COMP).

.category was exactly what I was looking for.

Thanks for the help!