[Bf-extensions-cvs] [aeabdc02] master: Update Add-ons class properties to annotations

NBurn noreply at git.blender.org
Thu Jan 17 22:49:38 CET 2019


Commit: aeabdc02a83a976b2f594cd66873c6d2b537e669
Author: NBurn
Date:   Thu Jan 17 16:48:54 2019 -0500
Branches: master
https://developer.blender.org/rBAaeabdc02a83a976b2f594cd66873c6d2b537e669

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.

===================================================================

M	add_advanced_objects_menu/__init__.py
M	add_advanced_objects_menu/add_light_template.py
M	add_advanced_objects_menu/add_mesh_aggregate.py
M	add_advanced_objects_menu/arrange_on_curve.py
M	add_advanced_objects_menu/copy2.py
M	add_advanced_objects_menu/make_struts.py
M	add_advanced_objects_menu/mesh_easylattice.py
M	add_advanced_objects_menu/oscurart_chain_maker.py
M	add_advanced_objects_menu/pixelate_3d.py
M	add_advanced_objects_menu/random_box_structure.py
M	add_advanced_objects_menu/rope_alpha.py
M	add_advanced_objects_menu/trilighting.py
M	add_advanced_objects_panels/__init__.py
M	add_advanced_objects_panels/delaunay_voronoi.py
M	add_advanced_objects_panels/drop_to_ground.py
M	add_advanced_objects_panels/oscurart_constellation.py
M	add_curve_extra_objects/add_curve_spirals.py
M	add_mesh_BoltFactory/Boltfactory.py
M	add_mesh_extra_objects/Wallfactory.py
M	add_mesh_extra_objects/__init__.py
M	add_mesh_extra_objects/add_empty_as_parent.py
M	add_mesh_extra_objects/add_mesh_3d_function_surface.py
M	add_mesh_extra_objects/add_mesh_beam_builder.py
M	add_mesh_extra_objects/add_mesh_gears.py
M	add_mesh_extra_objects/add_mesh_gemstones.py
M	add_mesh_extra_objects/add_mesh_honeycomb.py
M	add_mesh_extra_objects/add_mesh_menger_sponge.py
M	add_mesh_extra_objects/add_mesh_pipe_joint.py
M	add_mesh_extra_objects/add_mesh_pyramid.py
M	add_mesh_extra_objects/add_mesh_round_brilliant.py
M	add_mesh_extra_objects/add_mesh_round_cube.py
M	add_mesh_extra_objects/add_mesh_solid.py
M	add_mesh_extra_objects/add_mesh_star.py
M	add_mesh_extra_objects/add_mesh_supertoroid.py
M	add_mesh_extra_objects/add_mesh_teapot.py
M	add_mesh_extra_objects/add_mesh_torusknot.py
M	add_mesh_extra_objects/add_mesh_triangles.py
M	add_mesh_extra_objects/add_mesh_twisted_torus.py
M	add_mesh_extra_objects/geodesic_domes/third_domes_panel_271.py
M	add_mesh_extra_objects/mesh_discombobulator.py
M	animation_animall.py
M	ant_landscape/__init__.py
M	archimesh/__init__.py
M	archimesh/achm_books_maker.py
M	archimesh/achm_column_maker.py
M	archimesh/achm_curtain_maker.py
M	archimesh/achm_door_maker.py
M	archimesh/achm_kitchen_maker.py
M	archimesh/achm_lamp_maker.py
M	archimesh/achm_roof_maker.py
M	archimesh/achm_room_maker.py
M	archimesh/achm_shelves_maker.py
M	archimesh/achm_stairs_maker.py
M	archimesh/achm_venetian_maker.py
M	archimesh/achm_window_maker.py
M	archimesh/achm_window_panel.py
M	btrace/__init__.py
M	btrace/bTrace_props.py
M	camera_turnaround.py
M	development_api_navigator.py
M	development_edit_operator.py
M	development_iskeyfree.py
M	development_ui_classes.py
M	io_anim_acclaim/__init__.py
M	io_anim_c3d/__init__.py
M	io_anim_nuke_chan/__init__.py
M	io_convert_image_to_mesh_img/ui/importer.py
M	io_convert_image_to_mesh_img/ui/terrainpanel.py
M	io_export_after_effects.py
M	io_export_paper_model.py
M	io_export_unreal_psk_psa.py
M	io_import_gimp_image_to_scene.py
M	io_import_scene_lwo.py
M	io_import_scene_unreal_psa_psk.py
M	io_mesh_pdb/__init__.py
M	io_mesh_raw/__init__.py
M	io_online_sketchfab/__init__.py
M	io_scene_3ds/__init__.py
M	io_scene_ms3d/ms3d_ui.py
M	io_scene_vrml2/__init__.py
M	io_scene_x/__init__.py
M	io_scene_x3d/__init__.py
M	io_sequencer_edl/__init__.py
M	light_field_tools/__init__.py
M	materials_library_vx/__init__.py
M	materials_utils/__init__.py
M	materials_utils/materials_cycles_converter.py
M	materials_utils/texture_rename.py
M	measureit/__init__.py
M	mesh_auto_mirror.py
M	mesh_bsurfaces.py
M	mesh_carver.py
M	mesh_extra_tools/__init__.py
M	mesh_extra_tools/face_inset_fillet.py
M	mesh_extra_tools/mesh_check.py
M	mesh_extra_tools/mesh_cut_faces.py
M	mesh_extra_tools/mesh_edge_roundifier.py
M	mesh_extra_tools/mesh_edges_floor_plan.py
M	mesh_extra_tools/mesh_edges_length.py
M	mesh_extra_tools/mesh_edgetools.py
M	mesh_extra_tools/mesh_fastloop.py
M	mesh_extra_tools/mesh_filletplus.py
M	mesh_extra_tools/mesh_help.py
M	mesh_extra_tools/mesh_mextrude_plus.py
M	mesh_extra_tools/mesh_offset_edges.py
M	mesh_extra_tools/mesh_pen_tool.py
M	mesh_extra_tools/mesh_select_tools/mesh_index_select.py
M	mesh_extra_tools/mesh_select_tools/mesh_select_by_direction.py
M	mesh_extra_tools/mesh_select_tools/mesh_select_by_edge_length.py
M	mesh_extra_tools/mesh_select_tools/mesh_select_by_pi.py
M	mesh_extra_tools/mesh_select_tools/mesh_select_by_type.py
M	mesh_extra_tools/mesh_select_tools/mesh_select_connected_faces.py
M	mesh_extra_tools/mesh_vertex_chamfer.py
M	mesh_extra_tools/pkhg_faces.py
M	mesh_extra_tools/random_vertices.py
M	mesh_extra_tools/split_solidify.py
M	mesh_extra_tools/vertex_align.py
M	mesh_inset/__init__.py
M	mesh_relax.py
M	mesh_tissue/colors_groups_exchanger.py
M	mesh_tissue/dual_mesh.py
M	mesh_tissue/lattice.py
M	mesh_tissue/tessellate_numpy.py
M	mesh_tissue/uv_to_mesh.py
M	mocap/__init__.py
M	netrender/ui.py
M	object_fracture/fracture_ops.py
M	object_fracture_cell/__init__.py
M	object_fracture_crack/__init__.py
M	object_skinify.py
M	paint_palette.py
M	render_auto_tile_size.py
M	render_freestyle_svg.py
M	render_povray/__init__.py
M	render_povray/nodes.py
M	render_povray/primitives.py
M	sequencer_kinoraw_tools/__init__.py
M	sequencer_kinoraw_tools/datamosh.py
M	sequencer_kinoraw_tools/jumptocut.py
M	sequencer_kinoraw_tools/operators_extra_actions.py
M	sequencer_kinoraw_tools/proxy_tools.py
M	sequencer_kinoraw_tools/recursive_loader.py
M	space_clip_editor_autotracker.py
M	space_view3d_3d_navigation.py
M	space_view3d_brush_menus/__init__.py
M	space_view3d_brush_menus/brush_menu.py
M	space_view3d_display_tools/__init__.py
M	space_view3d_display_tools/display.py
M	space_view3d_display_tools/fast_navigate.py
M	space_view3d_display_tools/modifier_tools.py
M	space_view3d_display_tools/select_tools.py
M	space_view3d_display_tools/selection_restrictor.py
M	space_view3d_display_tools/useless_tools.py
M	space_view3d_pie_menus/__init__.py
M	space_view3d_spacebar_menu.py
M	space_view3d_stored_views/__init__.py
M	space_view3d_stored_views/io.py
M	space_view3d_stored_views/operators.py
M	space_view3d_stored_views/properties.py
M	system_property_chart.py
M	ui_layer_manager.py
M	uv_bake_texture_to_vcols.py
M	uv_magic_uv/op/align_uv.py
M	uv_magic_uv/op/align_uv_cursor.py
M	uv_magic_uv/op/copy_paste_uv.py
M	uv_magic_uv/op/copy_paste_uv_object.py
M	uv_magic_uv/op/flip_rotate_uv.py
M	uv_magic_uv/op/mirror_uv.py
M	uv_magic_uv/op/move_uv.py
M	uv_magic_uv/op/pack_uv.py
M	uv_magic_uv/op/preserve_uv_aspect.py
M	uv_magic_uv/op/select_uv.py
M	uv_magic_uv/op/smooth_uv.py
M	uv_magic_uv/op/texture_lock.py
M	uv_magic_uv/op/texture_projection.py
M	uv_magic_uv/op/texture_wrap.py
M	uv_magic_uv/op/transfer_uv.py
M	uv_magic_uv/op/unwrap_constraint.py
M	uv_magic_uv/op/uv_bounding_box.py
M	uv_magic_uv/op/uv_inspection.py
M	uv_magic_uv/op/uv_sculpt.py
M	uv_magic_uv/op/uvw.py
M	uv_magic_uv/op/world_scale_uv.py
M	uv_magic_uv/preferences.py
M	uv_texture_atlas.py

===================================================================

diff --git a/add_advanced_objects_menu/__init__.py b/add_advanced_objects_menu/__init__.py
index 32bbbd7f..91ddcb18 100644
--- a/add_advanced_objects_menu/__init__.py
+++ b/add_advanced_objects_menu/__init__.py
@@ -202,12 +202,12 @@ def menu(self, context):
 class AdvancedObjPreferences(AddonPreferences):
     bl_idname = __name__
 
-    show_menu_list = BoolProperty(
+    show_menu_list: BoolProperty(
         name="Menu List",
         description="Show/Hide the Add Menu items",
         default=False
     )
-    show_panel_list = BoolProperty(
+    show_panel_list: BoolProperty(
         name="Panels List",
         description="Show/Hide the Panel items",
         default=False
@@ -313,149 +313,149 @@ def adjust_selected_color_image(self, context):
 class AdvancedObjProperties(PropertyGroup):
     # cubester
     # main properties
-    cubester_check_audio = BoolProperty(
+    cubester_check_audio: BoolProperty(
         name="",
         default=False
     )
-    cubester_audio_image = EnumProperty(
+    cubester_audio_image: EnumProperty(
         name="Input Type",
         items=(("image", "Image",
                 "Use an Image as input for generating Geometry", "IMAGE_COL", 0),
                ("audio", "Audio",
                 "Use a Sound Strip as input for generating Geometry", "FILE_SOUND", 1))
     )
-    cubester_audio_file_length = IntProperty(
+    cubester_audio_file_length: IntProperty(
         default=0
     )
     # audio
-    cubester_audio_path = StringProperty(
+    cubester_audio_path: StringProperty(
         default="",
         name="Audio File",
         subtype="FILE_PATH",
         update=find_audio_length
     )
-    cubester_audio_min_freq = IntProperty(
+    cubester_audio_min_freq: IntProperty(
         name="Minimum Frequency",
         min=20, max=100000,
         default=20
     )
-    cubester_audio_max_freq = IntProperty(
+    cubester_audio_max_freq: IntProperty(
         name="Maximum Frequency",
         min=21, max=999999,
         default=5000
     )
-    cubester_audio_offset_type = EnumProperty(
+    cubester_audio_offset_type: EnumProperty(
         name="Offset Type",
         items=(("freq", "Frequency Offset", ""),
                ("frame", "Frame Offset", "")),
         description="Type of offset per row of mesh"
     )
-    cubester_audio_frame_offset = IntProperty(
+    cubester_audio_frame_offset: IntProperty(
         name="Frame Offset",
         min=0, max=10,
         default=2
     )
-    cubester_audio_block_layout = EnumProperty(
+    cubester_audio_block_layout: EnumProperty(
         name="Block Layout",
         items=(("rectangle", "Rectangular", ""),
               ("radial", "Radial", ""))
     )
-    cubester_audio_width_blocks = IntProperty(
+    cubester_audio_width_blocks: IntProperty(
         name="Width Block Count",
         min=1, max=10000,
         default=5
     )
-    cubester_audio_length_blocks = IntProperty(
+    cubester_audio_length_blocks: IntProperty(
         name="Length Block Count",
         min=1, max=10000,
         default=50
     )
     # image
-    cubester_load_type = EnumProperty(
+    cubester_load_type: EnumProperty(
         name="Image Input Type",
         items=(("single", "Single Image", ""),
               ("multiple", "Image Sequence", ""))
     )
-    cubester_image = StringProperty(
+    cubester_image: StringProperty(
         default="",
         name=""
     )
-    cubester_load_image = StringProperty(
+    cubester_load_image: StringProperty(
         default="",
         name="Load Image",
         subtype="FILE_PATH",
         update=adjust_selected_image
     )
-    cubester_skip_images = IntProperty(
+    cubester_skip_images: IntProperty(
         name="Image Step",
         min=1, max=30,
         default=1,
         description="Step from image to image by this number"
     )
-    cubester_max_images = IntProperty(
+    cubester_max_images: IntProperty(
         name="Max Number Of Images",
         min=2, max=1000,
         default=10,
         description="Maximum number of images to be used"
     )
-    cubester_frame_step = IntProperty(
+    cubester_frame_step: IntProperty(
         name="Frame Step Size",
         min=1, max=10,
         default=4,
         description="The number of frames each picture is used"
     )
-    cubester_skip_pixels = IntProperty(
+    cubester_skip_pixels: IntProperty(
         name="Skip # Pixels",
         min=0, max=256,
         default=64,
         description="Skip this number of pixels before placing the next"
     )
-    cubester_mesh_style = EnumProperty(
+    cubester_mesh_style: EnumProperty(
         name="Mesh Type",
         items=(("blocks", "Blocks", ""),
                ("plane", "Plane", "")),
         description="Compose mesh of multiple blocks or of a single plane"
     )
-    cubester_block_style = EnumProperty(
+    cubester_block_style: EnumProperty(
         name="Block Style",
         items=(("size", "Vary Size", ""),
                ("position", "Vary Position", "")),
         description="Vary Z-size of block, or vary Z-position"
     )
-    cubester_height_scale = FloatProperty(
+    cubester_height_scale: FloatProperty(
         name="Height Scale",
         subtype="DISTANCE",
         min=0.1, max=2,
         default=0.2
     )
-    cubester_invert = BoolProperty(
+    cubester_invert: BoolProperty(
         name="Invert Height",
         default=False
     )
     # general adjustments
-    cubester_size_per_hundred_pixels = FloatProperty(
+    cubester_size_per_hundred_pixels: FloatProperty(
         name="Size Per 100 Blocks/Points",
         subtype="DISTANCE",
         min=0.001, max=5,
         default=1
     )
     # material based stuff
-    cubester_materials = EnumProperty(
+    cubester_materials: EnumProperty(
         name="Material",
         items=(("vertex", "Vertex Colors", ""),
                ("image", "Image", "")),
         description="Color with vertex colors, or uv unwrap and use an image"
     )
-    cubester_use_image_color = BoolProperty(
+    cubester_use_image_color: BoolProperty(
         name="Use Original Image Colors'?",
         default=True,
         description="Use original image colors, or replace with an another one"
     )
-    cubester_color_image = StringProperty(
+    cubester_color_image: StringProperty(
         default="",
         name=""
     )
-    cubester_load_color_image = StringProperty(
+    cubester_load_color_image: StringProperty(
         default="",
         name="Load Color Image",
         subtype="FILE_PATH",
@@ -463,33 +463,33 @@ class AdvancedObjProperties(PropertyGroup):
     )
     cubester_vertex_colors = {}
     # advanced
-    cubester_advanced = BoolProperty(
+    cubester_advanced: BoolProperty(
         name="Advanced Options",
         default=False
     )
-    cubester_random_weights = BoolProperty(
+    cubester_random_weights: BoolProperty(
         name="Random Weights",
         default=False
     )
-    cubester_weight_r = FloatProperty(
+    cubester_weight_r: FloatProperty(
         name="Red",
         subtype="FACTOR",
         min=0.01, max=1.0,
         default=0.25
     )
-    cubester_weight_g = FloatProperty(
+    cubester_weight_g: FloatProperty(
         name="Green",
         subtype="FACTOR",
         min=0.01, max=1.0,
         default=0.25
     )
-    cubester_weight_b = FloatProperty(
+    cubester_weight_b: FloatProperty(
         name="Blue",
         subtype="FACTOR",
         min=0.01, max=1.0,
         default=0.25
     )
-    cubester_weight_a = FloatProperty(
+    cubester_weight_a: FloatProperty(
         name="Alpha",
         subtype="FACTOR",
         min=0.01, max=1.0,
@@ -497,15 +497,15 @@ class AdvancedObjProperties(PropertyGroup):
     )
 
     # arrange_on_curve
-    arrange_c_use_selected = BoolProperty(
+    arrange_c_use_selected: BoolProperty(
         name="Use Selected",
         description="Use the selected objects to duplicate",
         default=True,
     )
-    arrange_c_obj_arranjar = StringProperty(
+    arrange_c_obj_arranjar: StringProperty(
         name=""
     )
-    arrange_c_select_type = EnumProperty(
+    arrange_c_select_type: EnumProperty(
         name="Type",
         description="Select object or group",
         items=[
diff --git a/add_advanced_objects_menu/add_light_template.py b/add_advanced_objects_menu/add_light_template.py
index 5b4fbc86..2ca87c3b 100644
--- a/add_advanced_objects_menu/add_light_template.py
+++ b/add_advanced_objects_menu/add_light_template.py
@@ -73,22 +73,22 @@ class OBJECT_OT_add_light_template(Operator):
     camera = None
     target = None
 
-    bKeyLight = BoolProperty(
+    bKeyLight: BoolProperty(
             name="Key Light",
             description="Enable Key Light in the Scene",
             default=True
             )
-    bFillLight = BoolProperty(
+    bFillLight: BoolProperty(
             name="Fill Light",
             description="Enable Fill Light in the Scene",
             default=True
             )
-    bBackLight = BoolProperty(
+    bBackLight: BoolProperty(
             name="Back Light",
             description="Enable Back Light in the Scene",
             default=True
             )
-    camera_constraint = BoolProperty(
+    camera_constraint: BoolProperty(
             name="Camera Constraint",
             description="Add a Constraint to the Camera Object",
             default=False
diff --git a/add_advanced_objects_menu/add_mesh_aggregate.py b/add_advanced_objects_menu/add_mesh_aggregate.py
index 6072cb9c..b2ea399e 100644
--- a/add_advanced_objects_menu/add_mesh_aggregate.py
+++ b/add_advanced_objects_menu/add_mesh_aggregate.py
@@ -71,92 +71,92 @@ class OBJECT_OT_agregate_mesh(Operator):
                       "Needs at least two selected Mesh objects")
     bl_options = {'REGISTER', 'UNDO', 'PRESET'}
 
-    volX = FloatProperty(
+    volX: FloatProperty(
             name="Volume X",
             min=0.1, max=25,
             default=3,
             description="The cloud around cursor"
             )
-    volY = FloatProperty(
+    volY: FloatProperty(
             name="Volume Y",
             min=0.1, max=25,
             default=3,
             descri

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-extensions-cvs mailing list