Inspired by this repository (thank you @MitjaNemec ) I made my own script for placing components in a circle in KiCad 6.0. I was in need for this, so I just had to make it.
At first I tried modifying your code for every error KiCad threw at me, but at some point I did not understand what was going on.
Maybe you find this interesting when porting your code?
https://github.com/MxFxM/Place-Footprints-In-Circle
The main difference I guess is that the GetModules() function was replaced by GetFootprints()
You can contact me and I will try to help porting the script.
Inspired by this repository (thank you @MitjaNemec ) I made my own script for placing components in a circle in KiCad 6.0. I was in need for this, so I just had to make it. At first I tried modifying your code for every error KiCad threw at me, but at some point I did not understand what was going on. Maybe you find this interesting when porting your code? https://github.com/MxFxM/Place-Footprints-In-Circle
The main difference I guess is that the GetModules() function was replaced by GetFootprints() You can contact me and I will try to help porting the script.