In a project I noticed a part of my 3D object is clipped. It is easy to correct that in the properties panel (N), View, Clip, End.
I copied the underlying Python command via the scripting Info window:
bpy.context.space_data.clip_end = 50000
but when I run this command via the console it gives me an error telling me that this attribute (
clip_end) doesn't exist. In the API documentation, I find this in the section on
bpy.types.SpaceView3D, but I can't get it working although my feeling is this should be very easy. So how do I access this property?