Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/addon/properties.py
| Show First 20 Lines • Show All 576 Lines • ▼ Show 20 Lines | def register(cls): | ||||
| default=math.pi, | default=math.pi, | ||||
| ) | ) | ||||
| cls.fisheye_lens = FloatProperty( | cls.fisheye_lens = FloatProperty( | ||||
| name="Fisheye Lens", | name="Fisheye Lens", | ||||
| description="Lens focal length (mm)", | description="Lens focal length (mm)", | ||||
| min=0.01, soft_max=15.0, max=100.0, | min=0.01, soft_max=15.0, max=100.0, | ||||
| default=10.5, | default=10.5, | ||||
| ) | ) | ||||
| cls.equirect_lat_min = FloatProperty( | |||||
brecht: I'd name these latitude_min, longitude_min, .. since we generally don't use abbreviations like… | |||||
| name="Min latitude", | |||||
| description="Minimum latitude (vertical angle) for the equirectangular lens", | |||||
| min=-0.5 * math.pi, max=0.5 * math.pi, | |||||
| subtype='ANGLE', | |||||
| default=-0.5 * math.pi, | |||||
| ) | |||||
| cls.equirect_lat_max = FloatProperty( | |||||
| name="Max latitude", | |||||
| description="Maximum latitude (vertical angle) for the equirectangular lens", | |||||
| min=-0.5 * math.pi, max=0.5 * math.pi, | |||||
| subtype='ANGLE', | |||||
| default=0.5 * math.pi, | |||||
| ) | |||||
| cls.equirect_lon_min = FloatProperty( | |||||
| name="Min longitude", | |||||
| description="Minimum longitude (horizontal angle) for the equirectangular lens", | |||||
| min=-math.pi, max=math.pi, | |||||
| subtype='ANGLE', | |||||
| default=-math.pi, | |||||
| ) | |||||
| cls.equirect_lon_max = FloatProperty( | |||||
| name="Max longitude", | |||||
| description="Maximum longitude (horizontal angle) for the equirectangular lens", | |||||
| min=-math.pi, max=math.pi, | |||||
| subtype='ANGLE', | |||||
| default=math.pi, | |||||
| ) | |||||
| @classmethod | @classmethod | ||||
| def unregister(cls): | def unregister(cls): | ||||
| del bpy.types.Camera.cycles | del bpy.types.Camera.cycles | ||||
| class CyclesMaterialSettings(bpy.types.PropertyGroup): | class CyclesMaterialSettings(bpy.types.PropertyGroup): | ||||
| @classmethod | @classmethod | ||||
| ▲ Show 20 Lines • Show All 389 Lines • Show Last 20 Lines | |||||
I'd name these latitude_min, longitude_min, .. since we generally don't use abbreviations like equirect or lat in variable names, and the full thing is indeed a bit long.