just disconnect teh shader form the sg, create new one, copy values by name connect the new one to sg. Delet eold one.
Tip: turn echo all opn, use the drop down menu in tha AE and look at what the script editor echoes. The function does exactly this.