How can i script a stylized head?

I’ve made a head and shapekeys, but i have no idea how can i apply the deformation scripting? when i use the project by effect house, my head just desappear, but if i change the head values expressions, it works but not naturally