diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-09-06 17:01:03 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-09-06 17:01:03 +0300 |
commit | 0c19368ecd9186d8a99a8405331304ad708f250a (patch) | |
tree | 4c037ec45893be61baeaff101d3f6b1414da52c0 /io_mesh_uv_layout | |
parent | 25d49a3436164c3cf95c47ab77ffa3e0bc80ce67 (diff) |
UV_OT_export_layout: Properties to field
Diffstat (limited to 'io_mesh_uv_layout')
-rw-r--r-- | io_mesh_uv_layout/__init__.py | 17 |
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, |