'Override' option - bitmap dialog window ?
Hi guys ,
As you can see i've got a problem with the access to this 'override' option for gamma change.
I've tried to find something in 3dsmax manual first ,google it,but with no success.
Default gamma i'm using is 2.2.
There is a need to load normal maps and change it to gamma:1.0.Its a simple script to generate material and load the proper maps into it.
Fileingamma is working somehow ,but its not the way i want.Cause any transfer to different scene is giving result 2.2 again.
I've got an idea to create .mat file ,load it and then will get the right bitmap slots to the newmaterial .
Here is a part of the code :
for i = 1 to selection.count do ( fileingamma = 1.0 local drifitPath = @"ThePath" local normalFabric = drifitPath + "JPG name" isDrifitFileExist = doesFileExist normalFabric if (isDrifitFileExist == true)then ( newmat.texmap_bump.normal_map.mapList[3] = Bitmaptexture filename:normalFabric ) ) fileingamma = 2.2
So, would be great if you are more experienced in that.
Thanks in advice!
Attachment | Size |
---|---|
override.jpg | 11.78 KB |
Comments
.
have you seen this?
I guess it should be as easy as
'Override' walked around
Hey miauu , thanks for the fast response .Its a nice to have access to those options ,but it seems thats not what i was searching for or did not find a way to implement it properly as override option in bitmap dialog window.
Here is the approach that gives me best results for now:
- Made a .mat file with Normal maps/bitmaps already overrided to 1.0.
- Load the library .
- Generate myMaterial. --gamma-2.2
- Copy myMaterial to new slot. --Its the way to keep generated maps.
- Transfer .mat-VrayNormalMap to myMaterial. -- the maps are off for now.
- Transfer the maps back - myMaterialCopy -> myMaterial. -- map are in and overrided.
- delete myMaterialcopy.
.
IDisplayGamma.gamma : float : Read|Write
Get/Set the Gamma value.
Available in 3ds Max 2008 and higher.
Equivalent to the System Global Variable displayGamma available in previous releases.
EXAMPLE:
IDisplayGamma.colorCorrectionMode = #gamma --enable Gamma
IDisplayGamma.gamma = 1.8 --set the Gamma to 1.8
Tools and Scripts for Autodesk 3dsMax