I got it to work. I inserted my own Scriptlet and copied the code from the Sustain scriptlet. Assigned a button widget to control the “sustain” parameter. Then used MIDI learn for that widget assigning my sustain pedal.
So the sustain Scriptlet works for you?
Yes. Thank you.