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:
authorCampbell Barton <ideasman42@gmail.com>2010-11-06 02:54:36 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-11-06 02:54:36 +0300
commit6969994d3c99ef535858bcb9dad4dd27b15702c4 (patch)
tree77b01d79755799ebb78294dae5b679969f503bbe /io_coat3D/__init__.py
parent3a2267df7f14641667ce498bd73fbffb6d5a8512 (diff)
tabs -> spaces
Diffstat (limited to 'io_coat3D/__init__.py')
-rw-r--r--io_coat3D/__init__.py326
1 files changed, 163 insertions, 163 deletions
diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py
index c99f47c7..a53d0063 100644
--- a/io_coat3D/__init__.py
+++ b/io_coat3D/__init__.py
@@ -45,177 +45,177 @@ from io_coat3D import tex
def register():
- bpy.coat3D = dict()
- bpy.coat3D['active_coat'] = ''
- bpy.coat3D['status'] = 0
- bpy.coat3D['kuva'] = 1
+ bpy.coat3D = dict()
+ bpy.coat3D['active_coat'] = ''
+ bpy.coat3D['status'] = 0
+ bpy.coat3D['kuva'] = 1
- class coat3D(bpy.types.IDPropertyGroup):
- pass
-
- bpy.types.Object.coat3D= PointerProperty(
- name= "Applink Variables",
- type= coat3D,
- description= "Applink variables"
- )
-
- coat3D.objpath = StringProperty(
- name="Object_Path",
- default= ""
- )
-
- coat3D.coatpath = StringProperty(
- name="Coat_Path",
- default= ""
- )
-
-
- class coat3D(bpy.types.IDPropertyGroup):
- pass
-
- bpy.types.Scene.coat3D= PointerProperty(
- name= "Applink Variables",
- type= coat3D,
- description= "Applink variables"
- )
-
- coat3D.objectdir = StringProperty(
- name="ObjectPath",
- subtype="FILE_PATH",
- default= ""
- )
-
- coat3D.exchangedir = StringProperty(
- name="FilePath",
- subtype="DIR_PATH",
- default= ""
- )
-
- coat3D.wasactive = StringProperty(
- name="Pass active object",
- default= ""
- )
-
- coat3D.export_on = BoolProperty(
- name="Export_On",
- description="Add Modifiers and export.",
- default= False
- )
-
- coat3D.smooth_on = BoolProperty(
- name="Auto Smooth",
- description="Add Modifiers and export.",
- default= True
- )
-
- coat3D.exportfile = BoolProperty(
- name="No Import File",
- description="Add Modifiers and export.",
- default= False
- )
-
- coat3D.importmod = BoolProperty(
- name="Remove Modifiers",
- description="Import and add modifiers.",
- default= True
- )
-
- coat3D.exportmod = BoolProperty(
- name="Modifiers",
- description="Export modifiers.",
- default= False
- )
-
- coat3D.export_pos = BoolProperty(
- name="Remember Position",
- description="Remember position.",
- default= True
- )
-
- coat3D.importtextures = BoolProperty(
- name="Bring Textures",
- description="Import Textures.",
- default= True
- )
-
- coat3D.exportover = BoolProperty(
- name="Export Obj",
- description="Import Textures.",
- default= False
- )
-
- coat3D.importmesh = BoolProperty(
- name="Mesh",
- description="Import Mesh.",
- default= True
- )
-
- #copy location
-
- coat3D.cursor = FloatVectorProperty(
- name="Cursor",
- description="Location.",
- subtype="XYZ",
- default=(0.0, 0.0, 0.0)
- )
-
- coat3D.loca = FloatVectorProperty(
- name="location",
- description="Location.",
- subtype="XYZ",
- default=(0.0, 0.0, 0.0)
- )
-
- coat3D.rota = FloatVectorProperty(
- name="location",
- description="Location.",
- subtype="EULER",
- default=(0.0, 0.0, 0.0)
- )
-
- coat3D.scal = FloatVectorProperty(
- name="location",
- description="Location.",
- subtype="XYZ",
- default=(0.0, 0.0, 0.0)
- )
-
- coat3D.dime = FloatVectorProperty(
- name="dimension",
- description="Dimension.",
- subtype="XYZ",
- default=(0.0, 0.0, 0.0)
- )
-
- coat3D.type = EnumProperty( name= "Export Type",
- description= "Diffrent 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", ""),
- ("autopo", "Mesh for Auto-retopology", ""),
- ),
- default= "ppp"
- )
+ class coat3D(bpy.types.IDPropertyGroup):
+ pass
+
+ bpy.types.Object.coat3D= PointerProperty(
+ name= "Applink Variables",
+ type= coat3D,
+ description= "Applink variables"
+ )
+
+ coat3D.objpath = StringProperty(
+ name="Object_Path",
+ default= ""
+ )
+
+ coat3D.coatpath = StringProperty(
+ name="Coat_Path",
+ default= ""
+ )
+
+
+ class coat3D(bpy.types.IDPropertyGroup):
+ pass
+
+ bpy.types.Scene.coat3D= PointerProperty(
+ name= "Applink Variables",
+ type= coat3D,
+ description= "Applink variables"
+ )
+
+ coat3D.objectdir = StringProperty(
+ name="ObjectPath",
+ subtype="FILE_PATH",
+ default= ""
+ )
+
+ coat3D.exchangedir = StringProperty(
+ name="FilePath",
+ subtype="DIR_PATH",
+ default= ""
+ )
+
+ coat3D.wasactive = StringProperty(
+ name="Pass active object",
+ default= ""
+ )
+
+ coat3D.export_on = BoolProperty(
+ name="Export_On",
+ description="Add Modifiers and export.",
+ default= False
+ )
+
+ coat3D.smooth_on = BoolProperty(
+ name="Auto Smooth",
+ description="Add Modifiers and export.",
+ default= True
+ )
+
+ coat3D.exportfile = BoolProperty(
+ name="No Import File",
+ description="Add Modifiers and export.",
+ default= False
+ )
+
+ coat3D.importmod = BoolProperty(
+ name="Remove Modifiers",
+ description="Import and add modifiers.",
+ default= True
+ )
+
+ coat3D.exportmod = BoolProperty(
+ name="Modifiers",
+ description="Export modifiers.",
+ default= False
+ )
+
+ coat3D.export_pos = BoolProperty(
+ name="Remember Position",
+ description="Remember position.",
+ default= True
+ )
+
+ coat3D.importtextures = BoolProperty(
+ name="Bring Textures",
+ description="Import Textures.",
+ default= True
+ )
+
+ coat3D.exportover = BoolProperty(
+ name="Export Obj",
+ description="Import Textures.",
+ default= False
+ )
+
+ coat3D.importmesh = BoolProperty(
+ name="Mesh",
+ description="Import Mesh.",
+ default= True
+ )
+
+ #copy location
+
+ coat3D.cursor = FloatVectorProperty(
+ name="Cursor",
+ description="Location.",
+ subtype="XYZ",
+ default=(0.0, 0.0, 0.0)
+ )
+
+ coat3D.loca = FloatVectorProperty(
+ name="location",
+ description="Location.",
+ subtype="XYZ",
+ default=(0.0, 0.0, 0.0)
+ )
+
+ coat3D.rota = FloatVectorProperty(
+ name="location",
+ description="Location.",
+ subtype="EULER",
+ default=(0.0, 0.0, 0.0)
+ )
+
+ coat3D.scal = FloatVectorProperty(
+ name="location",
+ description="Location.",
+ subtype="XYZ",
+ default=(0.0, 0.0, 0.0)
+ )
+
+ coat3D.dime = FloatVectorProperty(
+ name="dimension",
+ description="Dimension.",
+ subtype="XYZ",
+ default=(0.0, 0.0, 0.0)
+ )
+
+ coat3D.type = EnumProperty( name= "Export Type",
+ description= "Diffrent 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", ""),
+ ("autopo", "Mesh for Auto-retopology", ""),
+ ),
+ default= "ppp"
+ )
def unregister():
- import bpy
+ import bpy
- del bpy.types.Object.coat3D
- del bpy.types.Scene.coat3D
- del bpy.coat3D
-
+ del bpy.types.Object.coat3D
+ del bpy.types.Scene.coat3D
+ del bpy.coat3D
+
if __name__ == "__main__":
- register()
+ register()