This code is so old, the creator stated it has released it to the wild in the hope someone can save it.
Developer statement:
This is in need of updating since blender ~3
You can find for free in gitstash
This is setup to go to the blender dev fund.
You can find this in github as well but in blender market I get some credit, money goes to the dev fund, and it’s easy for me to send updates.
The GPTGod cannot save this add-on for Blender 4.2, can someone do it?
Note: You can install it with no issue, but when you select the faces and click the button, you get error
This addon makes making window light so easy, no need to scale and move and rotate area lights “trying” to match the window shape, with this add-on, you just select the face, click the button and you have an area light with the exact shape, size and position!
To start the panel’s name and bl_idname must change to the 3.* format (i.e. VIEW3D_PT_*)
Then the operator produces an error when called, mainly because bpy.ops.object.transform_apply needs to be called in ‘OBJECT’ mode.
And after that is corrected, the operator runs, the new lights are scaled accordingly, but it fails to copy the object’s rotation to the AreaLight.
You are right, logic did dictate it is an addon.
Now my lovely dear, try it
Go to edit mode, select a face, any face, and click that button.
You will see an error.
Portal is cool, it allows more light to enter in, LOVE IT, but I must confess I have started to use less of it…cause I just…forgot…because denoising is so good now, but yeah, I should start using portal again.
I plan to use Eevee and Cycles, I need to find out what you mean by “emission closure to indirect diffuse ray”, it went over my head! ha ha ha
In the mean time, I find the ability to convert selected faces to area light of exact matching size to be a bonus
Thank you for attempting to try to fix the addon though, I appreciate it.