[Bf-extensions-cvs] [0c19368e] blender2.8: UV_OT_export_layout: Properties to field
Dalai Felinto
noreply at git.blender.org
Thu Sep 6 16:13:25 CEST 2018
Commit: 0c19368ecd9186d8a99a8405331304ad708f250a
Author: Dalai Felinto
Date: Thu Sep 6 11:01:03 2018 -0300
Branches: blender2.8
https://developer.blender.org/rBA0c19368ecd9186d8a99a8405331304ad708f250a
UV_OT_export_layout: Properties to field
===================================================================
M io_mesh_uv_layout/__init__.py
===================================================================
diff --git a/io_mesh_uv_layout/__init__.py b/io_mesh_uv_layout/__init__.py
index e33dcb41..061cf376 100644
--- a/io_mesh_uv_layout/__init__.py
+++ b/io_mesh_uv_layout/__init__.py
@@ -61,26 +61,26 @@ class ExportUVLayout(bpy.types.Operator):
bl_label = "Export UV Layout"
bl_options = {'REGISTER', 'UNDO'}
- filepath = StringProperty(
+ filepath: StringProperty(
subtype='FILE_PATH',
)
- check_existing = BoolProperty(
+ check_existing: BoolProperty(
name="Check Existing",
description="Check and warn on overwriting existing files",
default=True,
options={'HIDDEN'},
)
- export_all = BoolProperty(
+ export_all: BoolProperty(
name="All UVs",
description="Export all UVs in this mesh (not just visible ones)",
default=False,
)
- modified = BoolProperty(
+ modified: BoolProperty(
name="Modified",
description="Exports UVs from the modified mesh",
default=False,
)
- mode = EnumProperty(
+ mode: EnumProperty(
items=(('SVG', "Scalable Vector Graphic (.svg)",
"Export the UV layout to a vector SVG file"),
('EPS', "Encapsulate PostScript (.eps)",
@@ -92,19 +92,20 @@ class ExportUVLayout(bpy.types.Operator):
description="File format to export the UV layout to",
default='PNG',
)
- size = IntVectorProperty(
+ size: IntVectorProperty(
+ name="Size",
size=2,
default=(1024, 1024),
min=8, max=32768,
description="Dimensions of the exported file",
)
- opacity = FloatProperty(
+ opacity: FloatProperty(
name="Fill Opacity",
min=0.0, max=1.0,
default=0.25,
description="Set amount of opacity for exported UV layout"
)
- tessellated = BoolProperty(
+ tessellated: BoolProperty(
name="Tessellated UVs",
description="Export tessellated UVs instead of polygons ones",
default=False,
More information about the Bf-extensions-cvs
mailing list