Connect Visual Envelop with knobs and Samples using Script

Hi Guys,
I need help to connect a Visual AmpEnvelope with knobs and Samples using Script.

I defined the EnvelopePoints but it doesn’t recognised by the visual Envelope!

here is the project:
Control Envelope Visual with knobs.zip (2.9 MB)