|
|
@@ -1,86 +0,0 @@
|
|
1
|
|
-'''
|
|
2
|
|
-Created by Marcin Zielinski, Doug Hammond, Thomas Ludwig, Nicholas Chapman, Yves Colle
|
|
3
|
|
-
|
|
4
|
|
- This program is free software: you can redistribute it and/or modify
|
|
5
|
|
- it under the terms of the GNU General Public License as published by
|
|
6
|
|
- the Free Software Foundation, either version 3 of the License, or
|
|
7
|
|
- (at your option) any later version.
|
|
8
|
|
-
|
|
9
|
|
- This program is distributed in the hope that it will be useful,
|
|
10
|
|
- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
|
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
|
- GNU General Public License for more details.
|
|
13
|
|
-
|
|
14
|
|
- You should have received a copy of the GNU General Public License
|
|
15
|
|
- along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
|
-'''
|
|
17
|
|
-
|
|
18
|
|
-bl_info = {
|
|
19
|
|
- "name": "Blendigo - Indigo Exporter",
|
|
20
|
|
- "description": "This Addon will allow you to render your scenes with the Indigo render engine.",
|
|
21
|
|
- "author": "Glare Technologies Ltd.",
|
|
22
|
|
- "version": (4, 2, 0),
|
|
23
|
|
- "blender": (2, 78, 0),
|
|
24
|
|
- "location": "View3D",
|
|
25
|
|
- "wiki_url": "",
|
|
26
|
|
- "category": "Render" }
|
|
27
|
|
-
|
|
28
|
|
-
|
|
29
|
|
-import bpy
|
|
30
|
|
-
|
|
31
|
|
-# load and reload submodules
|
|
32
|
|
-##################################
|
|
33
|
|
-
|
|
34
|
|
-import importlib
|
|
35
|
|
-from . import developer_utils
|
|
36
|
|
-importlib.reload(developer_utils)
|
|
37
|
|
-modules = developer_utils.setup_addon_modules(__path__, __name__, "bpy" in locals())
|
|
38
|
|
-
|
|
39
|
|
-
|
|
40
|
|
-
|
|
41
|
|
-# register
|
|
42
|
|
-##################################
|
|
43
|
|
-
|
|
44
|
|
-import traceback
|
|
45
|
|
-
|
|
46
|
|
-def register():
|
|
47
|
|
- try: bpy.utils.register_module(__name__)
|
|
48
|
|
- except: traceback.print_exc()
|
|
49
|
|
-
|
|
50
|
|
- from . properties.render_settings import Indigo_Engine_Properties
|
|
51
|
|
- bpy.types.Scene.indigo_engine = bpy.props.PointerProperty(name="Indigo Engine Properties", type = Indigo_Engine_Properties)
|
|
52
|
|
-
|
|
53
|
|
- from . properties.camera import Indigo_Camera_Properties
|
|
54
|
|
- bpy.types.Camera.indigo_camera = bpy.props.PointerProperty(name="Indigo Camera Properties", type = Indigo_Camera_Properties)
|
|
55
|
|
-
|
|
56
|
|
- from . properties.environment import Indigo_Lightlayers_Properties
|
|
57
|
|
- bpy.types.Scene.indigo_lightlayers = bpy.props.PointerProperty(name="Indigo Lightlayers Properties", type = Indigo_Lightlayers_Properties)
|
|
58
|
|
-
|
|
59
|
|
- from . properties.lamp import Indigo_Lamp_Sun_Properties, Indigo_Lamp_Hemi_Properties
|
|
60
|
|
- bpy.types.Lamp.indigo_lamp_sun = bpy.props.PointerProperty(name="Indigo Lamp Sun Properties", type = Indigo_Lamp_Sun_Properties)
|
|
61
|
|
- bpy.types.Lamp.indigo_lamp_hemi = bpy.props.PointerProperty(name="Indigo Lamp Hemi Properties", type = Indigo_Lamp_Hemi_Properties)
|
|
62
|
|
-
|
|
63
|
|
- from . properties.material import Indigo_Material_Properties, Indigo_Texture_Properties
|
|
64
|
|
- bpy.types.Material.indigo_material = bpy.props.PointerProperty(name="Indigo Material Properties", type = Indigo_Material_Properties)
|
|
65
|
|
- bpy.types.Texture.indigo_texture = bpy.props.PointerProperty(name="Indigo Texture Properties", type = Indigo_Texture_Properties)
|
|
66
|
|
-
|
|
67
|
|
- from . properties.medium import Indigo_Material_Medium_Properties
|
|
68
|
|
- bpy.types.Scene.indigo_material_medium = bpy.props.PointerProperty(name="Indigo Material Medium Properties", type = Indigo_Material_Medium_Properties)
|
|
69
|
|
- bpy.types.Material.indigo_material_medium = bpy.props.PointerProperty(name="Indigo Material Medium Properties", type = Indigo_Material_Medium_Properties)
|
|
70
|
|
-
|
|
71
|
|
- from . properties.object import Indigo_Mesh_Properties
|
|
72
|
|
- bpy.types.Mesh.indigo_mesh = bpy.props.PointerProperty(name="Indigo Mesh Properties", type = Indigo_Mesh_Properties)
|
|
73
|
|
- bpy.types.SurfaceCurve.indigo_mesh = bpy.props.PointerProperty(name="Indigo Mesh Properties", type = Indigo_Mesh_Properties)
|
|
74
|
|
- bpy.types.TextCurve.indigo_mesh = bpy.props.PointerProperty(name="Indigo Mesh Properties", type = Indigo_Mesh_Properties)
|
|
75
|
|
- bpy.types.Curve.indigo_mesh = bpy.props.PointerProperty(name="Indigo Mesh Properties", type = Indigo_Mesh_Properties)
|
|
76
|
|
-
|
|
77
|
|
- from . properties.tonemapping import Indigo_Tonemapping_Properties
|
|
78
|
|
- bpy.types.Camera.indigo_tonemapping = bpy.props.PointerProperty(name="Indigo Tonemapping Properties", type = Indigo_Tonemapping_Properties)
|
|
79
|
|
-
|
|
80
|
|
- print("Registered {} with {} modules".format(bl_info["name"], len(modules)))
|
|
81
|
|
-
|
|
82
|
|
-def unregister():
|
|
83
|
|
- try: bpy.utils.unregister_module(__name__)
|
|
84
|
|
- except: traceback.print_exc()
|
|
85
|
|
-
|
|
86
|
|
- print("Unregistered {}".format(bl_info["name"]))
|