Skip to content
Snippets Groups Projects
Commit 6969994d authored by Campbell Barton's avatar Campbell Barton
Browse files

tabs -> spaces

parent 3a2267df
No related branches found
No related tags found
No related merge requests found
...@@ -45,177 +45,177 @@ from io_coat3D import tex ...@@ -45,177 +45,177 @@ from io_coat3D import tex
def register(): def register():
bpy.coat3D = dict() bpy.coat3D = dict()
bpy.coat3D['active_coat'] = '' bpy.coat3D['active_coat'] = ''
bpy.coat3D['status'] = 0 bpy.coat3D['status'] = 0
bpy.coat3D['kuva'] = 1 bpy.coat3D['kuva'] = 1
class coat3D(bpy.types.IDPropertyGroup): class coat3D(bpy.types.IDPropertyGroup):
pass pass
bpy.types.Object.coat3D= PointerProperty( bpy.types.Object.coat3D= PointerProperty(
name= "Applink Variables", name= "Applink Variables",
type= coat3D, type= coat3D,
description= "Applink variables" description= "Applink variables"
) )
coat3D.objpath = StringProperty( coat3D.objpath = StringProperty(
name="Object_Path", name="Object_Path",
default= "" default= ""
) )
coat3D.coatpath = StringProperty( coat3D.coatpath = StringProperty(
name="Coat_Path", name="Coat_Path",
default= "" default= ""
) )
class coat3D(bpy.types.IDPropertyGroup): class coat3D(bpy.types.IDPropertyGroup):
pass pass
bpy.types.Scene.coat3D= PointerProperty( bpy.types.Scene.coat3D= PointerProperty(
name= "Applink Variables", name= "Applink Variables",
type= coat3D, type= coat3D,
description= "Applink variables" description= "Applink variables"
) )
coat3D.objectdir = StringProperty( coat3D.objectdir = StringProperty(
name="ObjectPath", name="ObjectPath",
subtype="FILE_PATH", subtype="FILE_PATH",
default= "" default= ""
) )
coat3D.exchangedir = StringProperty( coat3D.exchangedir = StringProperty(
name="FilePath", name="FilePath",
subtype="DIR_PATH", subtype="DIR_PATH",
default= "" default= ""
) )
coat3D.wasactive = StringProperty( coat3D.wasactive = StringProperty(
name="Pass active object", name="Pass active object",
default= "" default= ""
) )
coat3D.export_on = BoolProperty( coat3D.export_on = BoolProperty(
name="Export_On", name="Export_On",
description="Add Modifiers and export.", description="Add Modifiers and export.",
default= False default= False
) )
coat3D.smooth_on = BoolProperty( coat3D.smooth_on = BoolProperty(
name="Auto Smooth", name="Auto Smooth",
description="Add Modifiers and export.", description="Add Modifiers and export.",
default= True default= True
) )
coat3D.exportfile = BoolProperty( coat3D.exportfile = BoolProperty(
name="No Import File", name="No Import File",
description="Add Modifiers and export.", description="Add Modifiers and export.",
default= False default= False
) )
coat3D.importmod = BoolProperty( coat3D.importmod = BoolProperty(
name="Remove Modifiers", name="Remove Modifiers",
description="Import and add modifiers.", description="Import and add modifiers.",
default= True default= True
) )
coat3D.exportmod = BoolProperty( coat3D.exportmod = BoolProperty(
name="Modifiers", name="Modifiers",
description="Export modifiers.", description="Export modifiers.",
default= False default= False
) )
coat3D.export_pos = BoolProperty( coat3D.export_pos = BoolProperty(
name="Remember Position", name="Remember Position",
description="Remember position.", description="Remember position.",
default= True default= True
) )
coat3D.importtextures = BoolProperty( coat3D.importtextures = BoolProperty(
name="Bring Textures", name="Bring Textures",
description="Import Textures.", description="Import Textures.",
default= True default= True
) )
coat3D.exportover = BoolProperty( coat3D.exportover = BoolProperty(
name="Export Obj", name="Export Obj",
description="Import Textures.", description="Import Textures.",
default= False default= False
) )
coat3D.importmesh = BoolProperty( coat3D.importmesh = BoolProperty(
name="Mesh", name="Mesh",
description="Import Mesh.", description="Import Mesh.",
default= True default= True
) )
#copy location #copy location
coat3D.cursor = FloatVectorProperty( coat3D.cursor = FloatVectorProperty(
name="Cursor", name="Cursor",
description="Location.", description="Location.",
subtype="XYZ", subtype="XYZ",
default=(0.0, 0.0, 0.0) default=(0.0, 0.0, 0.0)
) )
coat3D.loca = FloatVectorProperty( coat3D.loca = FloatVectorProperty(
name="location", name="location",
description="Location.", description="Location.",
subtype="XYZ", subtype="XYZ",
default=(0.0, 0.0, 0.0) default=(0.0, 0.0, 0.0)
) )
coat3D.rota = FloatVectorProperty( coat3D.rota = FloatVectorProperty(
name="location", name="location",
description="Location.", description="Location.",
subtype="EULER", subtype="EULER",
default=(0.0, 0.0, 0.0) default=(0.0, 0.0, 0.0)
) )
coat3D.scal = FloatVectorProperty( coat3D.scal = FloatVectorProperty(
name="location", name="location",
description="Location.", description="Location.",
subtype="XYZ", subtype="XYZ",
default=(0.0, 0.0, 0.0) default=(0.0, 0.0, 0.0)
) )
coat3D.dime = FloatVectorProperty( coat3D.dime = FloatVectorProperty(
name="dimension", name="dimension",
description="Dimension.", description="Dimension.",
subtype="XYZ", subtype="XYZ",
default=(0.0, 0.0, 0.0) default=(0.0, 0.0, 0.0)
) )
coat3D.type = EnumProperty( name= "Export Type", coat3D.type = EnumProperty( name= "Export Type",
description= "Diffrent Export Types.", description= "Diffrent Export Types.",
items=( items=(
("ppp", "Per-Pixel Painting", ""), ("ppp", "Per-Pixel Painting", ""),
("mv", "Microvertex Painting", ""), ("mv", "Microvertex Painting", ""),
("ptex", "Ptex Painting", ""), ("ptex", "Ptex Painting", ""),
("uv", "UV-Mapping", ""), ("uv", "UV-Mapping", ""),
("ref", "Reference Mesh", ""), ("ref", "Reference Mesh", ""),
("retopo", "Retopo mesh as new layer", ""), ("retopo", "Retopo mesh as new layer", ""),
("vox", "Mesh As Voxel Object", ""), ("vox", "Mesh As Voxel Object", ""),
("alpha", "Mesh As New Pen Alpha", ""), ("alpha", "Mesh As New Pen Alpha", ""),
("prim", "Mesh As Voxel Primitive", ""), ("prim", "Mesh As Voxel Primitive", ""),
("autopo", "Mesh for Auto-retopology", ""), ("autopo", "Mesh for Auto-retopology", ""),
), ),
default= "ppp" default= "ppp"
) )
def unregister(): def unregister():
import bpy import bpy
del bpy.types.Object.coat3D del bpy.types.Object.coat3D
del bpy.types.Scene.coat3D del bpy.types.Scene.coat3D
del bpy.coat3D del bpy.coat3D
if __name__ == "__main__": if __name__ == "__main__":
register() register()
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment