Hi sorry forgot answer you. I just finished the project.
I got it working with the help of a postprocessing script. The script is very simple and just takes a split second to excetute.
You can check it out here.
It’s a little bit simpler than the macro you gave me as an example, but similar.
Thanks for your help