-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproperties.py
29 lines (22 loc) · 1.15 KB
/
properties.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
import bpy
from math import pi
from bpy.props import (FloatProperty, StringProperty, FloatVectorProperty,BoolProperty)
class PmxAssetizeProp(bpy.types.PropertyGroup):
source_pmx_folder : StringProperty(default="")
preserve_folder_structure: BoolProperty(default = False)
source_pmx : StringProperty(default="")
auto_asemble: BoolProperty(default = False)
auto_smooth: BoolProperty(default = False)
asset_folder : StringProperty(default="")
camera_location: FloatVectorProperty(name="Thumbnail auto camera location", default = (0, -0.75, 1.3))
camera_rotation: FloatVectorProperty(name="Thumbnail auto camera rotation", default = (pi/2, 0.0, 0.0))
auto_camera: BoolProperty(default = True)
auto_angle: BoolProperty(default = True)
auto_angle_zoom_offset: FloatProperty(default=0.0)
ignore_file_pack_error: BoolProperty(default = True)
@staticmethod
def register():
bpy.types.Scene.PmxAssetizeProp = bpy.props.PointerProperty(type=PmxAssetizeProp) # pylint: disable=assignment-from-no-return
@staticmethod
def unregister():
del bpy.types.Scene.PmxAssetizeProp