Modify Outliner with python I wrote a simple addon to toggle the Camera Ray visibility of multiple elements, something I'm constantly doing in my workflow.



I'd love to be able to modify the Outliner panel to add a new column controlling this attribute like the mock up below, but I was unable to find where the outliner tree is created in the code.



I need something more complex than the current panel I have (Quick Camera Ray), something that would let me know in a glance which meshes are camera visible or not, just like the outliner icons do with viewport/render visibility. Any tips?
While there is a small python script that handles the header and menus for the outliner, most of the outliner drawing is handled in C source files. This means that customising the outliner appearance requires a custom build of blender, though you can add menus as shown here.

I would suggest you keep using the panel in the properties editor that you have already started with.