-
Notifications
You must be signed in to change notification settings - Fork 1
/
__init__.py
77 lines (64 loc) · 1.6 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import logging
if "bpy" not in locals():
import bpy
from bpy.props import (
StringProperty,
EnumProperty,
BoolProperty,
IntProperty,
FloatProperty,
PointerProperty
)
from bpy.types import (
PropertyGroup
)
from . import (ui, blooms)
else:
import importlib
importlib.reload(blooms)
importlib.reload(ui)
bl_info = {
"name": "Blooms",
"author": "Patric Schmitz",
"version": (0, 0, 0),
"blender": (2, 78, 0),
"location": "3D View Tool Shelf (left)",
"description": "Procedural modeling plugin to generate 3D printable zoetrope sculptures as invented by John Edmark.",
"wiki_url": "TODO",
"category": "Generative"
}
log = logging.getLogger('blooms')
class BloomsProperties(PropertyGroup):
frame_count = IntProperty(
name="frame-count",
description='',
default=144,
min=0,
update=blooms.update
)
live_update = BoolProperty(
name="live-update",
description='',
default=False,
)
spin = BoolProperty(
name="spin",
description='',
default=False,
update=blooms.spinToggle
)
spin_fps = FloatProperty(
name="spin_fps",
description='',
default=10,
)
def register():
bpy.utils.register_class(BloomsProperties)
bpy.types.Scene.blooms = PointerProperty(type=BloomsProperties)
blooms.register()
ui.register()
def unregister():
ui.unregister()
blooms.unregister()
del bpy.types.Scene.blooms
bpy.utils.unregister_class(BloomsProperties)