-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path__init__.py
48 lines (39 loc) · 1.64 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTIBILITY 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
# along with this program. If not, see <http://www.gnu.org/licenses/>.
bl_info = {
"name" : "JBake Tools",
"author" : "Jayanam",
"description" : "Blender Addon to simplify baking image maps",
"blender" : (2, 80, 0),
"version" : (0, 3, 0, 3),
"location" : "View3D",
"category" : "Object"
}
# Blender imports
import bpy
from bpy.props import *
from . jb_panel import *
from . jb_operators import *
# Low poly object to bake onto
bpy.types.Scene.low_poly = PointerProperty(type=bpy.types.Object)
# High poly object with the details to bake
bpy.types.Scene.high_poly = PointerProperty(type=bpy.types.Object)
bpy.types.Scene.img_bake_width = bpy.props.IntProperty( name="Image Width", description="Width of image to bake", default = 2048)
bpy.types.Scene.img_bake_height = bpy.props.IntProperty( name="Image Height", description="Height of image to bake", default = 2048)
classes = ( JB_Bake_Op, JB_PT_Panel, JB_PT_Settings_Panel )
def register():
for c in classes:
bpy.utils.register_class(c)
def unregister():
for c in classes:
bpy.utils.unregister_class(c)