I am trying implement frustum culling in maya , where I am turning Level of Detail
to boundingbox
[cmds.setAttr(object + '.overrideLevelOfDetail',0)
] if they are not in the frustum of the selected camera : refer to the image for clear reference.
I have written this script till now, using this I can get the required result, but I want it to be dynamic, so if camera is moving it will set the display of objects depending upon their position as of now I need re run the script to be able to reflect the changes
Here is the code that I worked on till now : frustum culling maya
Any help would be appreciated
Thanks & Regards
EDIT :