-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathproperties.py
More file actions
29 lines (21 loc) · 896 Bytes
/
properties.py
File metadata and controls
29 lines (21 loc) · 896 Bytes
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
class ConjureLogItem(bpy.types.PropertyGroup):
message: bpy.props.StringProperty()
type: bpy.props.StringProperty(default="INFO")
path: bpy.props.StringProperty()
class ConjureSettings(bpy.types.PropertyGroup):
prompt: bpy.props.StringProperty(
name="Prompt", default="A futuristic cyberpunk helmet"
)
refined_prompt: bpy.props.StringProperty()
is_running: bpy.props.BoolProperty(default=False)
show_refined: bpy.props.BoolProperty(default=False)
logs: bpy.props.CollectionProperty(type=ConjureLogItem)
def register():
bpy.utils.register_class(ConjureLogItem)
bpy.utils.register_class(ConjureSettings)
bpy.types.Scene.conjure = bpy.props.PointerProperty(type=ConjureSettings)
def unregister():
del bpy.types.Scene.conjure
bpy.utils.unregister_class(ConjureSettings)
bpy.utils.unregister_class(ConjureLogItem)