4 eyes character

Hello! I’m trying to create a Vtuber for my son but his character is a boy with a pet on top of his head which creates a 4 eyes character instead of the regular “human” characters. I noticed that the new “purple wizard” from the main page in cartoon animator has exactly the answer for my question because the eyes from the hat follows the main character eyes too and it blinks and so on. How would I write the folders and layers inside Photoshop? or how do I link the eyes from the pet with the eyes from the main character to blink and change sprites as well (as a note the eyes from the pet and main character are completely different shapes as well so different sprites for both of them too) I couldn’t find any similar video or explanation about it.
Thank you.