Add Custom Camera-Composition-Guide

Hello everyone, I am looking to add custom guides to the cameras for my work. Can anyone point me to the part of Blender that draws them? Any help would be much appreciated.
For what it’s worth, I don’t intend to share it because it’s specific to my situation, but I’d be happy to share an example of how to do it if/when I figure it out.

You want to be in view3d_draw.c, looking at drawviewborder. Just past a comment like /* safety border */ you will find the drawing of the various types of guides and borders. Should be easy to add a new one or just butcher an existing one if just temporary.

1 Like

Thank you for your help. I tried looking in the Python source files that add the checkboxes to the Camera object and couldn’t find any clues to lead me back to the C code… even in the RNA. I will look there and update this post if/when I obtain results.