How to save changes in a custom window?(python Maya)


#1

How to save changes in a custom window?

I have a custom window that allows people to change the texture on the mesh. The problem is when I close the window it won’t save the changes (it will back to the default option). It can be confused sometimes. Does anyone know how to fix that by use python?
Many thanks