I have created custom attributes for the attribute sets namely set1 and set2.
I have created the products via script with attribute set name as set1. The products are saved successfully.
But Now I wish to change the attributeset name from set1 to set2.
Please provide me a solution how do i update the attribute set for the existing products while saving the product via programatically.