Probably that I do that not correctly? I can't control/assign value to GammaMgr.DisplayGamma
Via MaxScript - no problem, but it is desirable to use whenever possible less MaxscriptSDK.ExecuteMaxscriptCommand...
Part of code:
global.GammaMgr.FileInGamma; global.GammaMgr.FileOutGamma; works Ok
Via MaxScript - no problem, but it is desirable to use whenever possible less MaxscriptSDK.ExecuteMaxscriptCommand...
Part of code:
Code:
if (...) { global.GammaMgr.Enable = (sender as ToggleButton).IsChecked.Value; if ((sender as ToggleButton).IsChecked == true) { IInterface13 Core = global.COREInterface13; IRenderer vrender = Core.GetCurrentRenderer(false); IIParamBlock2 pb2 = vrender.GetParamBlock(11); float gval = Convert.ToSingle(this.numCMgamma.Value); global.GammaMgr.FileInGamma = global.GammaMgr.DisplayGamma = gval; //Zero attention from 3ds Max - DisplayGamma global.GammaMgr.FileOutGamma = 1.0f; pb2.SetValue(265, Core.Time, gval, 0); //colorMapping_gamma if (Core.RenderDialogOpen) { Core.UpdateRenderDialogParameters(); } } }
Comment