@Slam Thunderhide you can run this as a scene plugin - were you thinking more to add on just a person? if so I'm afraid I'm not going write that. I thought about this and having multiple copies of this script (1 per person) running at once is a silly from a coding and CPU usage perspective. It's better to go through a loop once than multiple times for each person. (it already needs cleaning up if I'm honest).
I made the choice to do this as I was writing the foreskin plugin which is a per person plugin. I wanted this part of the script to effect everyone in a scene and if I wrote it as a person plugin than you would end up with multi copies of this script running at once. For what it's doing, to effect multiple people, one script running over all person in a scene seem to make sense to me. So scene or session plugin.
I made the choice to do this as I was writing the foreskin plugin which is a per person plugin. I wanted this part of the script to effect everyone in a scene and if I wrote it as a person plugin than you would end up with multi copies of this script running at once. For what it's doing, to effect multiple people, one script running over all person in a scene seem to make sense to me. So scene or session plugin.