diff options
author | NBurn <7nburn@gmail.com> | 2019-01-18 00:48:54 +0300 |
---|---|---|
committer | NBurn <7nburn@gmail.com> | 2019-01-18 00:48:54 +0300 |
commit | aeabdc02a83a976b2f594cd66873c6d2b537e669 (patch) | |
tree | 3ac5922be25219ab666aae4b8d04002bce2e70a6 /light_field_tools/__init__.py | |
parent | ba97e19e5b3df449784a4cc4ed89ce7b511ec3e4 (diff) |
Update Add-ons class properties to annotations
This should take care of most of the class property conversions to
use the new annotation format (colon instead of equals) for
assignment. There may still be a few edge cases that were missed.
Diffstat (limited to 'light_field_tools/__init__.py')
-rw-r--r-- | light_field_tools/__init__.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/light_field_tools/__init__.py b/light_field_tools/__init__.py index b749f44c..17e32c8b 100644 --- a/light_field_tools/__init__.py +++ b/light_field_tools/__init__.py @@ -54,7 +54,7 @@ from bpy.props import ( # global properties for the script, mainly for UI class LightFieldPropertyGroup(PropertyGroup): - angle = FloatProperty( + angle: FloatProperty( name="Angle", # 40 degrees default=0.69813170079, @@ -65,38 +65,38 @@ class LightFieldPropertyGroup(PropertyGroup): subtype='ANGLE', description="Field of view of camera and angle of beam for spotlights" ) - row_length = IntProperty( + row_length: IntProperty( name="Row Length", default=1, min=1, description="The number of cameras/lights in one row" ) - create_handler = BoolProperty( + create_handler: BoolProperty( name="Handler", default=True, description="Creates an empty object, to which the cameras and spotlights are parented to" ) - do_camera = BoolProperty( + do_camera: BoolProperty( name="Create Camera", default=True, description="A light field camera is created" ) - animate_camera = BoolProperty( + animate_camera: BoolProperty( name="Animate Camera", default=True, description="Animates a single camera, so not multiple cameras get created" ) - do_projection = BoolProperty( + do_projection: BoolProperty( name="Create Projector", default=False, description="A light field projector is created" ) - texture_path = StringProperty( + texture_path: StringProperty( name="Texture Path", description="From this path textures for the spotlights will be loaded", subtype='DIR_PATH' ) - light_intensity = FloatProperty( + light_intensity: FloatProperty( name="Light Intensity", default=2, min=0, @@ -104,7 +104,7 @@ class LightFieldPropertyGroup(PropertyGroup): description="Total intensity of all lamps" ) # blending of the spotlights - spot_blend = FloatProperty( + spot_blend: FloatProperty( name="Blend", default=0, min=0, @@ -113,7 +113,7 @@ class LightFieldPropertyGroup(PropertyGroup): description="Blending of the spotlights" ) # spacing in pixels on the focal plane - spacing = IntProperty( + spacing: IntProperty( name="Spacing", default=10, min=0, @@ -150,7 +150,7 @@ class LFTPreferences(AddonPreferences): # when defining this in a submodule of a python package. bl_idname = __name__ - category = StringProperty( + category: StringProperty( name="Tab Category", description="Choose a name for the category of the panel", default="Tools", |