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.

Bake To Texture - Gamma Setting not accessible?

Bake To Texture - Gamma Setting not accessible?

victorEFVH7
Enthusiast Enthusiast
732 Views
6 Replies
Message 1 of 7

Bake To Texture - Gamma Setting not accessible?

victorEFVH7
Enthusiast
Enthusiast

Hi,

Im having some issues accessing the gamma settings in the new bake to texture utility map options section.

It looks like its not a part of the filename as it was in the render to texture utility.

filename:"something.exr" gamma:#auto

And it doesn't appear in the 

BakeToTextureMap.getOptionsCount()

 Anyone have a clue of how I can access this parameter so I can save it out in correct gamma trough maxscript?

0 Likes
Accepted solutions (1)
733 Views
6 Replies
Replies (6)
Message 2 of 7

denisT.MaxDoctor
Advisor
Advisor

what is 

BakeToTextureMap

?

0 Likes
Message 3 of 7

victorEFVH7
Enthusiast
Enthusiast

@denisT.MaxDoctor 
Bake to Texture is following 

Interface: BakeToTexture

This interface provides access to the functionality of the Bake to Texture dialog, including output file options, file types and sizes, and the baking process. The BakeToTextureMap interface (described below) exposes the functionality of individual bake maps themselves.


https://help.autodesk.com/view/MAXDEV/2022/ENU/?guid=GUID-BC5AE8EA-A88C-4CF3-AF63-4C45FB48EEB5

0 Likes
Message 4 of 7

victorEFVH7
Enthusiast
Enthusiast

To clarify which parameter im trying to access.

 

bakeToTexture.JPG

0 Likes
Message 5 of 7

denisT.MaxDoctor
Advisor
Advisor

Hmm... that's how it happens... in MAX 2020 this is not yet, but in MAX 2023 it is no longer there. Unfortunately I can't help you as other versions are not my priority.

0 Likes
Message 6 of 7

denisT.MaxDoctor
Advisor
Advisor
Accepted solution

Oh! Got it...

 

 

map = BakeToTexture.addMap $ #DiffuseMap
map.useGammaOverride = true
map.gammaOverrideValue = 2.2

 

 

 

it a property of map 

 
0 Likes
Message 7 of 7

victorEFVH7
Enthusiast
Enthusiast

Thanks @denisT.MaxDoctor , the property list solved everything

0 Likes