This is an N2 and N1 pattern.
折に
How it's built5
Examples2
on the occasion of; when the opportunity arises — warmer and more personal
出張で大阪へ行くおりに、恩師を訪ねるつもりだ。
shutchou de oosaka e iku ori ni, onshi o tazuneru tsumori da.
I plan to visit my old teacher, on the occasion of going to Osaka on a business trip. neutral
友人と久しぶりに会った折に、昔の写真を見せてもらった。
yuujin to hisashiburi ni atta ori ni, mukashi no shashin o misete moratta.
When I met up with a friend after a long time, they showed me some old photos. neutral
No same-meaning pattern.
No opposite.