Here a final script that will work for all layer which will have bline and origin. (Still need to implement for Group)
Set the orgin to center.zip (3.8 KB)
If you face any issues then tell me and we will solve it.
Here’s a plugin which might help you,
It will center the origin and also now works for group layers. Your detailed information about every reply to this thread was helpful for creating the plugin hope it helps you.