SetScalarParameterValue Access Violation

No. I want to change the scalar parameter “Hover”. If it’s zero the upper color is emitted and if it’s larger then the lower color will be emitted.