[Bf-extensions-cvs] [0a26640d] master: 3D-Coat Applink: Cleanup, replace star imports
lijenstina
noreply at git.blender.org
Sun Jul 23 15:52:05 CEST 2017
Commit: 0a26640d94a44898be2551fa48f50b3204dc82de
Author: lijenstina
Date: Sun Jul 23 15:51:15 2017 +0200
Branches: master
https://developer.blender.org/rBA0a26640d94a44898be2551fa48f50b3204dc82de
3D-Coat Applink: Cleanup, replace star imports
Bumped version to 3.5.22
Pep8 cleanup
Imports as tuples
Replace star imports
Update wiki link
No other functional changes
Only the init file is affected
===================================================================
M io_coat3D/__init__.py
===================================================================
diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py
index 8cbe4e54..b5539ede 100644
--- a/io_coat3D/__init__.py
+++ b/io_coat3D/__init__.py
@@ -19,12 +19,12 @@
bl_info = {
"name": "3D-Coat Applink",
"author": "Kalle-Samuli Riihikoski (haikalle)",
- "version": (3, 5, 21),
+ "version": (3, 5, 22),
"blender": (2, 59, 0),
"location": "Scene > 3D-Coat Applink",
"description": "Transfer data between 3D-Coat/Blender",
"warning": "",
- "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"
+ "wiki_url": "https://wiki.blender.org/index.php/Extensions:2.6/Py/"
"Scripts/Import-Export/3dcoat_applink",
"category": "Import-Export",
}
@@ -39,7 +39,14 @@ else:
from . import tex
import bpy
-from bpy.props import *
+from bpy.types import PropertyGroup
+from bpy.props import (
+ BoolProperty,
+ EnumProperty,
+ FloatVectorProperty,
+ StringProperty,
+ PointerProperty,
+ )
def register():
@@ -48,133 +55,165 @@ def register():
bpy.coat3D['status'] = 0
bpy.coat3D['kuva'] = 1
- class ObjectCoat3D(bpy.types.PropertyGroup):
- objpath = StringProperty(name="Object_Path")
- applink_name = StringProperty(name="Object_Applink_name")
- coatpath = StringProperty(name="Coat_Path")
- objectdir = StringProperty(name="ObjectPath", subtype="FILE_PATH")
- objecttime = StringProperty(name="ObjectTime", subtype="FILE_PATH")
- texturefolder = StringProperty(name="Texture folder:", subtype="DIR_PATH")
- path3b = StringProperty(name="3B Path", subtype="FILE_PATH")
- export_on = BoolProperty(name="Export_On", description="Add Modifiers and export",default= False)
- dime = FloatVectorProperty(name="dime",description="Dimension")
- loc = FloatVectorProperty(name="Location",description="Location")
- rot = FloatVectorProperty(name="Rotation",description="Rotation",subtype='EULER')
- sca = FloatVectorProperty(name="Scale",description="Scale")
-
- class SceneCoat3D(bpy.types.PropertyGroup):
+ class ObjectCoat3D(PropertyGroup):
+ objpath = StringProperty(
+ name="Object_Path"
+ )
+ applink_name = StringProperty(
+ name="Object_Applink_name"
+ )
+ coatpath = StringProperty(
+ name="Coat_Path"
+ )
+ objectdir = StringProperty(
+ name="ObjectPath",
+ subtype="FILE_PATH"
+ )
+ objecttime = StringProperty(
+ name="ObjectTime",
+ subtype="FILE_PATH"
+ )
+ texturefolder = StringProperty(
+ name="Texture folder:",
+ subtype="DIR_PATH"
+ )
+ path3b = StringProperty(
+ name="3B Path",
+ subtype="FILE_PATH"
+ )
+ export_on = BoolProperty(
+ name="Export_On",
+ description="Add Modifiers and export",
+ default=False
+ )
+ dime = FloatVectorProperty(
+ name="dime",
+ description="Dimension"
+ )
+ loc = FloatVectorProperty(
+ name="Location",
+ description="Location"
+ )
+ rot = FloatVectorProperty(
+ name="Rotation",
+ description="Rotation",
+ subtype='EULER'
+ )
+ sca = FloatVectorProperty(
+ name="Scale",
+ description="Scale"
+ )
+ class SceneCoat3D(PropertyGroup):
defaultfolder = StringProperty(
name="FilePath",
subtype="DIR_PATH",
- )
- cursor_loc = FloatVectorProperty(name="Cursor_loc",description="location")
-
+ )
+ cursor_loc = FloatVectorProperty(
+ name="Cursor_loc",
+ description="location"
+ )
exchangedir = StringProperty(
name="FilePath",
subtype="DIR_PATH"
- )
+ )
exchangefolder = StringProperty(
name="FilePath",
subtype="DIR_PATH"
- )
-
-
-
-
+ )
wasactive = StringProperty(
name="Pass active object",
- )
+ )
import_box = BoolProperty(
name="Import window",
description="Allows to skip import dialog",
- default= True
- )
+ default=True
+ )
exchange_found = BoolProperty(
name="Exchange Found",
description="Alert if Exchange folder is not found",
- default= True
- )
+ default=True
+ )
export_box = BoolProperty(
name="Export window",
description="Allows to skip export dialog",
- default= True
- )
+ default=True
+ )
export_color = BoolProperty(
name="Export color",
description="Export color texture",
- default= True
- )
+ default=True
+ )
export_spec = BoolProperty(
name="Export specular",
description="Export specular texture",
- default= True
- )
+ default=True
+ )
export_normal = BoolProperty(
name="Export Normal",
description="Export normal texture",
- default= True
- )
+ default=True
+ )
export_disp = BoolProperty(
name="Export Displacement",
description="Export displacement texture",
- default= True
- )
+ default=True
+ )
export_position = BoolProperty(
name="Export Source Position",
description="Export source position",
- default= True
- )
+ default=True
+ )
export_zero_layer = BoolProperty(
name="Export from Layer 0",
description="Export mesh from Layer 0",
- default= True
- )
+ default=True
+ )
export_coarse = BoolProperty(
name="Export Coarse",
description="Export Coarse",
- default= True
- )
+ default=True
+ )
exportfile = BoolProperty(
name="No Import File",
description="Add Modifiers and export",
- default= False
- )
+ default=False
+ )
importmod = BoolProperty(
name="Remove Modifiers",
description="Import and add modifiers",
- default= False
- )
+ default=False
+ )
exportmod = BoolProperty(
name="Modifiers",
description="Export modifiers",
- default= False
- )
+ default=False
+ )
export_pos = BoolProperty(
name="Remember Position",
description="Remember position",
- default= True
- )
+ default=True
+ )
importtextures = BoolProperty(
name="Bring Textures",
description="Import Textures",
- default= True
- )
+ default=True
+ )
importlevel = BoolProperty(
name="Multires. Level",
description="Bring Specific Multires Level",
- default= False
- )
+ default=False
+ )
exportover = BoolProperty(
name="Export Obj",
description="Import Textures",
- default= False
- )
+ default=False
+ )
importmesh = BoolProperty(
name="Mesh",
description="Import Mesh",
- default= True
- )
+ default=True
+ )
# copy location
cursor = FloatVectorProperty(
@@ -182,62 +221,61 @@ def register():
description="Location",
subtype="XYZ",
default=(0.0, 0.0, 0.0)
- )
+ )
loca = FloatVectorProperty(
name="location",
description="Location",
subtype="XYZ",
default=(0.0, 0.0, 0.0)
- )
+ )
rota = FloatVectorProperty(
name="location",
description="Location",
subtype="EULER",
default=(0.0, 0.0, 0.0)
- )
+ )
scal = FloatVectorProperty(
name="location",
description="Location",
subtype="XYZ",
default=(0.0, 0.0, 0.0)
- )
+ )
dime = FloatVectorProperty(
name="dimension",
description="Dimension",
subtype="XYZ",
default=(0.0, 0.0, 0.0)
- )
-
- type = EnumProperty( name= "Export Type",
- description= "Different Export Types",
- items=(("ppp", "Per-Pixel Painting", ""),
- ("mv", "Microvertex Painting", ""),
- ("ptex", "Ptex Painting", ""),
- ("uv", "UV-Mapping", ""),
- ("ref", "Reference Mesh", ""),
- ("retopo", "Retopo mesh as new layer", ""),
- ("vox", "Mesh As Voxel Object", ""),
- ("alpha", "Mesh As New Pen Alpha", ""),
- ("prim", "Mesh As Voxel Primitive", ""),
+ )
+ type = EnumProperty(
+ name="Export Type",
+ description="Different Export Types",
+ items=(("ppp", "Per-Pixel Painting", ""),
+ ("mv", "Microvertex Painting", ""),
+ ("ptex", "Ptex Painting", ""),
+ ("uv", "UV-Mapping", ""),
+ ("ref", "Reference Mesh", ""),
+ ("retopo", "Retopo mesh as new layer", ""),
+ ("vox", "Mesh As Voxel Object", ""),
+ ("alpha", "Mesh As New Pen Alpha", ""),
+ ("prim", "Mesh As Voxel Primitive", ""),
("curv", "
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list