I made an account to this site for the sole purpose of telling you that this works perfectly and is actually way better than the “Hold Space and click+drag” functionality if After Effects that I was hoping to emulate…
Now I want this script to enable the same thing in After Effects haha. Awesome work!