Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2018-09-06 17:01:03 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-09-06 17:01:03 +0300
commit0c19368ecd9186d8a99a8405331304ad708f250a (patch)
tree4c037ec45893be61baeaff101d3f6b1414da52c0 /io_mesh_uv_layout
parent25d49a3436164c3cf95c47ab77ffa3e0bc80ce67 (diff)
UV_OT_export_layout: Properties to field
Diffstat (limited to 'io_mesh_uv_layout')
-rw-r--r--io_mesh_uv_layout/__init__.py17
1 files changed, 9 insertions, 8 deletions
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,