The only way I can see to turn off the hole is to trick it by setting the length(A) and width (B) parameters to zero.
But this will affect the size of the light also.
So new parameters would need to be added for the size (length and width) of the light fitting and all the scripts amended to suit.
Add the 3 lines of code to the 3D script that I showed in the last creen shot and that will reposition the light to fit the hole (but it will still be square).
You could just leave the subtype as a "Light".
Add two lines of code to the 3D script.
ROTx roofang
ADDz roofthk
Then create 2 new parameters -
roofang (as an angle parameter) and
roofthk (as a length).
Now you can use gravity to snap the light to the roof and you can manually set the roof slope and thickness in your light object parameters.
And manually cut the holes in the roof.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11