[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1140] trunk/py/scripts/addons/ io_coat3D: tabs -> spaces
Campbell Barton
ideasman42 at gmail.com
Sat Nov 6 00:54:37 CET 2010
Revision: 1140
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=1140
Author: campbellbarton
Date: 2010-11-06 00:54:36 +0100 (Sat, 06 Nov 2010)
Log Message:
-----------
tabs -> spaces
Modified Paths:
--------------
trunk/py/scripts/addons/io_coat3D/__init__.py
trunk/py/scripts/addons/io_coat3D/coat.py
trunk/py/scripts/addons/io_coat3D/tex.py
Modified: trunk/py/scripts/addons/io_coat3D/__init__.py
===================================================================
--- trunk/py/scripts/addons/io_coat3D/__init__.py 2010-11-05 22:15:04 UTC (rev 1139)
+++ trunk/py/scripts/addons/io_coat3D/__init__.py 2010-11-05 23:54:36 UTC (rev 1140)
@@ -45,177 +45,177 @@
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"
- )
+ 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.objpath = StringProperty(
+ name="Object_Path",
+ default= ""
+ )
- coat3D.coatpath = StringProperty(
- name="Coat_Path",
- default= ""
- )
+ coat3D.coatpath = StringProperty(
+ name="Coat_Path",
+ default= ""
+ )
- class coat3D(bpy.types.IDPropertyGroup):
- pass
+ class coat3D(bpy.types.IDPropertyGroup):
+ pass
- bpy.types.Scene.coat3D= PointerProperty(
- name= "Applink Variables",
- type= coat3D,
- description= "Applink variables"
- )
+ bpy.types.Scene.coat3D= PointerProperty(
+ name= "Applink Variables",
+ type= coat3D,
+ description= "Applink variables"
+ )
- coat3D.objectdir = StringProperty(
- name="ObjectPath",
- subtype="FILE_PATH",
- default= ""
- )
+ coat3D.objectdir = StringProperty(
+ name="ObjectPath",
+ subtype="FILE_PATH",
+ default= ""
+ )
- coat3D.exchangedir = StringProperty(
- name="FilePath",
- subtype="DIR_PATH",
- default= ""
- )
+ coat3D.exchangedir = StringProperty(
+ name="FilePath",
+ subtype="DIR_PATH",
+ default= ""
+ )
- coat3D.wasactive = StringProperty(
- name="Pass active object",
- default= ""
- )
+ coat3D.wasactive = StringProperty(
+ name="Pass active object",
+ default= ""
+ )
- coat3D.export_on = BoolProperty(
- name="Export_On",
- description="Add Modifiers and export.",
- default= False
- )
+ 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.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.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.importmod = BoolProperty(
+ name="Remove Modifiers",
+ description="Import and add modifiers.",
+ default= True
+ )
- coat3D.exportmod = BoolProperty(
- name="Modifiers",
- description="Export modifiers.",
- default= False
- )
+ coat3D.exportmod = BoolProperty(
+ name="Modifiers",
+ description="Export modifiers.",
+ default= False
+ )
- coat3D.export_pos = BoolProperty(
- name="Remember Position",
- description="Remember position.",
- default= True
- )
+ coat3D.export_pos = BoolProperty(
+ name="Remember Position",
+ description="Remember position.",
+ default= True
+ )
- coat3D.importtextures = BoolProperty(
- name="Bring Textures",
- description="Import Textures.",
- 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.exportover = BoolProperty(
+ name="Export Obj",
+ description="Import Textures.",
+ default= False
+ )
- coat3D.importmesh = BoolProperty(
- name="Mesh",
- description="Import Mesh.",
- default= True
- )
+ coat3D.importmesh = BoolProperty(
+ name="Mesh",
+ description="Import Mesh.",
+ default= True
+ )
- #copy location
+ #copy location
- coat3D.cursor = FloatVectorProperty(
- name="Cursor",
- description="Location.",
- subtype="XYZ",
- default=(0.0, 0.0, 0.0)
- )
+ 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.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.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.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.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"
- )
+ 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()
Modified: trunk/py/scripts/addons/io_coat3D/coat.py
===================================================================
--- trunk/py/scripts/addons/io_coat3D/coat.py 2010-11-05 22:15:04 UTC (rev 1139)
+++ trunk/py/scripts/addons/io_coat3D/coat.py 2010-11-05 23:54:36 UTC (rev 1140)
@@ -11,7 +11,7 @@
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
@@ -21,19 +21,19 @@
# ***** END GPL LICENCE BLOCK *****
bl_addon_info = {
- "name": "Coat Applink",
- "author": "Kalle-Samuli Riihikoski (haikalle)",
- "version": (1,6),
- "blender": (2, 5, 4),
- "api": 31965,
- "location": "Properties space > Scene tab > 3D-Coat Applink",
- "description": "Show information about the .blend",
- "warning": "",
- "wiki_url": 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \
- 'Scripts/System/Blend Info',
- "tracker_url": "https://projects.blender.org/tracker/index.php?" \
- "func=detail&aid=22102&group_id=153&atid=469",
- "category": "System"}
+ "name": "Coat Applink",
+ "author": "Kalle-Samuli Riihikoski (haikalle)",
+ "version": (1,6),
+ "blender": (2, 5, 4),
+ "api": 31965,
+ "location": "Properties space > Scene tab > 3D-Coat Applink",
+ "description": "Show information about the .blend",
+ "warning": "",
+ "wiki_url": 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \
+ 'Scripts/System/Blend Info',
+ "tracker_url": "https://projects.blender.org/tracker/index.php?" \
+ "func=detail&aid=22102&group_id=153&atid=469",
+ "category": "System"}
import bpy
from bpy.props import *
@@ -49,452 +49,452 @@
#bpy.context.user_preferences.filepaths.use_relative_paths = False
class ObjectButtonsPanel():
- bl_space_type = 'PROPERTIES'
- bl_region_type = 'WINDOW'
- bl_context = "object"
+ bl_space_type = 'PROPERTIES'
+ bl_region_type = 'WINDOW'
+ bl_context = "object"
class SCENE_PT_Borgleader(ObjectButtonsPanel,bpy.types.Panel):
- bl_label = "3D-Coat Applink"
- bl_space_type = "PROPERTIES"
- bl_region_type = "WINDOW"
- bl_context = "scene"
+ bl_label = "3D-Coat Applink"
+ bl_space_type = "PROPERTIES"
+ bl_region_type = "WINDOW"
+ bl_context = "scene"
- def draw(self, context):
- layout = self.layout
- scene = context.scene
- me = context.scene.objects
- mat_list = []
- import_no = 0
- coat = bpy.coat3D
- coat3D = bpy.context.scene.coat3D
+ def draw(self, context):
+ layout = self.layout
+ scene = context.scene
+ me = context.scene.objects
+ mat_list = []
+ import_no = 0
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list