Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

How does the 3Dmax script load a bitmap as a gamma overlay?

How does the 3Dmax script load a bitmap as a gamma overlay?

adamhahaEU2VH
Enthusiast Enthusiast
467 Views
2 Replies
Message 1 of 3

How does the 3Dmax script load a bitmap as a gamma overlay?

adamhahaEU2VH
Enthusiast
Enthusiast

I can't find the corresponding property setting with showProperties.
For example this line of code:
tmp.texmap_bump = rt.VRayNormalMap(normal_map=rt.bitmaptexture(filename=d),normal_map_multiplier=1)
Is it possible to insert attribute modification in it to achieve the purpose of "set loading bitmap as gamma overlay"

20220620104522.png

0 Likes
Accepted solutions (1)
468 Views
2 Replies
Replies (2)
Message 2 of 3

Swordslayer
Advisor
Advisor
Accepted solution

Instead of assigning to the .filename property of the BitmapTexture map, assign new bitmap to the .bitmap one:

 

rt.bitmapTexture(bitmap = rt.openBitmap(texturePath, gamma = 1.0))
Message 3 of 3

adamhahaEU2VH
Enthusiast
Enthusiast
thank you very much!
0 Likes