Hi guys, I wonder how I can optimize this code (screenshot). I copy a layer and want to position the copy on the exact same position without putting them in the same parent. That's why always check for a parent and then add the parents.x,parents.y to a variable. Currently it only goes 5 times up. Can I write this more efficient and also do it till there is no parent anymore?
P.S.: This is for a new module that is coming soon :-)