Forums › Maxon Cinema 4D › Ray Collision “face_id” hits not all correct , using C4D python
-
Ray Collision “face_id” hits not all correct , using C4D python
-
anam hasan
May 22, 2022 at 5:02 pmHi there,
i am trying to hide polygons not visible in a camera path animation. I have the script working to some degree. I am using the ray collider functions and storing the face_id hits in a list, this is producing some weird results. I have checked the path of the rays which seem correct. The rays don’t all seem to be registering a face hit when they definitely should be and some faces are being hit when they shouldn’t be. This is a test file I am working with (see attached) The polygons that are stored in the face_id hit list are then updating the polygon selection tag.
I have attached the script in a null in a python tag, so please run it from the script manager to test it. I couldn’t seem to attach the python file to this separately.
Any help would be much appreciated
A
Log in to reply.