Is it possible to change the default value of passepartout to always be 1?

Is there any way I can change the default value of passepartout to always be 1? so that every time I add in a new camera it comes in with a value of 1?
Even changing it in code is fine, but I dont know what value controls it and where I can find it

Well, you can set it up for the single default camera in a new scene by setting its passepartout to 1 then using file -> defaults -> save startup file.

You could run this to set every camera’s passepartout alpha to 1 (paste in text editor and press Run Script):

import bpy

for camera in
    camera.passepartout_alpha = 1.0

The same as a callable operator (this is based on the “operator simple” template):

import bpy

def main(context):
    for camera in
        camera.passepartout_alpha = 1.0

class SetAllCamerasPassepartoutOne(bpy.types.Operator):
    """Set all cameras passepartout alpha to 1."""
    bl_idname = "scene.set_all_cameras_passepartout_one"
    bl_label = "Set all Cameras Passepartout to One"

    def poll(cls, context):
        return True

    def execute(self, context):
        return {'FINISHED'}

def register():

def unregister():

if __name__ == "__main__":

    # test call

Paste that in the text editor and press Run Script. The action is performed (the test call at the end) and the operator registered. You can now go to the 3d view, press search (F3 for me) and start typing “pass” and “scene.set_all_cameras_passepartout_one” should show up. You can right-click and add it to your quick favourites (Q) menu or make a shortcut.

I don’t really know much about this stuff though, so someone more experienced might be able to tell you how to make a script run automatically for new cameras, make the operator persist over blender sessions, etc.

thanks! Ill try it out :slight_smile: