V-Ray GPU access another PB ID (C#)

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:


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);
            }
        }

I try to avoid maxscript. Via maxscript it is possibile (f. e.):


renderers.current.V_Ray_settings.colorMapping_type = 0

Hello,

V-Ray GPU has an internal instance of the whole VRender object - that’s the one accessible with the MAXScript code: renderers.current.V_Ray_settings

The VRender object is the second reference in the V-Ray GPU renderer (GetReference(1)).

Best regards,
Yavor

Thank you very much, Yavor!