Thanks to the developers of GP for the possibility of scriptlets since version 4.
I have solved this for me more elegantly with a scriptlet.
Maybe one or the other can also use this.
Autosustain_scriptlet.gig (62.9 KB)
I thought I had already provided this at some point, but have not been able to find it myself on the forum.