Yes, my stims do vary according to the context; not just what emotion I'm feeling, but also the purpose of the stim, I think. For example:
Hand wringing, hair/beard twirling and pulling, tip-toe pacing: Much more likely if I'm trying to cope with anxiety.
Flapping, bouncing on my toes, hugging myself: More likely if I'm very excited in a happy way.
Various muscle clenches and forced facial expressions: These seem to be about re-calibrating my senses (proprioception particularly) and restoring the feeling that my mind occupies my body.
Toe curls, fiddle toys, feeling textures: Can happen pretty much any time, but especially when I'm engrossed in an activity. They are also my "stealth stims" that I use when others might attract unwanted attention. They're less satisfying than the others, but usually keep me going until I have some privacy.
Rocking and humming: Rare; usually only happen when I have a melt-down or shut-down.
_________________
When you are fighting an invisible monster, first throw a bucket of paint over it.