Is it possible to access another ParamBlock ID via MaxSDK .NET wrapper (C#) when as current renderer is set V-Ray GPU? Without problems I can get only PB ID0 (V-Ray GPU).
If current (or production) renderer is set V-Ray - no problems. Simple example property setter:
I try to avoid maxscript. Via maxscript it is possibile (f. e.):
If current (or production) renderer is set V-Ray - no problems. Simple example property setter:
Code:
public bool ColorMapAffectBack { get => _ColorMapAffectBack; set { if (_ColorMapAffectBack == value) return; _ColorMapAffectBack = value; NotifyPropertyChanged(() => ColorMapAffectBack); if (_Vrender == null) return; if (VrayType == 2) return; if (Core == null) return; var val = ColorMapAffectBack ? 1 : 0; var pb9 = _Vrender.GetParamBlockByID(9); pb9?.SetValue(178, Core.Time, val, Constants.TabIndexZero); } }
Code:
renderers.current.V_Ray_settings.colorMapping_type = 0
Comment