#1

I’m new to maxscritpt, and I have a problem with gamma while loading Bitmaptexture
I want to create a VrayMaterial and connect desired bitmap textures to certain channels with gamma overrides for certain channels
for example I have a such code:

meditMaterials[activeMeditSlot] = VRayMtl ()
mat = meditMaterials[activeMeditSlot]
mat.texmap_diffuse = Bitmaptexture fileName:"d:\\text.png" gamma:1.0


But bitmap texture loads without gamma overrides. I wonder how to load a Bitmaptexture with certain gamma.
I think t’s not a new question, maybe it was described in other topics, but I didn’t find it.