I’ve made some adjustments to have the addon working on 2.8.
Unfortunately I edited the code without documenting the changes. It’d be worthwhile to have a look at the changes.
One thing that I noticed is that enabling the addon (modified 2.8 version below) breaks the autosave functionality. This probably has something to do with the modal timer.
Some changes that I can remember is fixing all the new requirements for UI functions’ parameters (label, split, etc.) such as including text and replacing percentage with factor.
I changed the default obj.ray_cast to BVHTree version using the FromBmesh function. This is quite slow on objects with large number of vertices, I assume FromObject would be faster however I can’t figure out how to use FromObject function as it requires a magical depsgraph parameter. The reason why I had to change to BVHTree ray casting is that the obj.ray_cast kept giving an error in the veins of “no mesh data exists”. I tried updating the scene before calling it but it didn’t work, so I decided to switch to BVHTree ray casting.
I also removed all references to dupli objects as it seems they are removed in 2.8.
Also had to include some bl_idname here and there for classes to register properly. Moreover InterpolatedArray did not need to be registered. And AddonPreferenes is registered outside of the register() function as other classes depend on it’s data.
I hope this comes in handy, and someone manages to improve it even more.
photographer.py (49.8 KB)