Easy question - editing max clip

I want to edit that max clip field, right there in this pic via python. I’ve been trying for about 5 hours.


thanks!

You could do it this way:


areas = [area for area in bpy.context.window.screen.areas if area.type == "VIEW_3D"] # get a 3D view
areas[0].spaces[0].clip_end = 250 #change the clip end value

@cmomoney: your two-liner isn’t fail-safe, this is better:

for area in bpy.context.screen.areas:
    if area.type == 'VIEW_3D':
        area.spaces.active.clip_end = 250
        break
else:
    print("No 3D View")