Let's say you have some vertices which are places randomly in space. You want the origins to be aligned based on these vertices. I struggled a lot with it previously so I want to share the easy method I found.
Here is a solution:
In Edit mode select right vertices.
Go to Transform Orientation - Plus icon to create new orientation based on your selection
- Back to Object Mode check ‘Origins’ box
- In Object Mode use ‘Align to Transform Orientation’ operation
I hope it was useful! Happy holidays everyone!