-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
34 lines (29 loc) · 1.02 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
#!/usr/bin/env python3
import sys
sys.path.insert(0, sys.path[0]+'/')
import bpy
from bpy.props import PointerProperty, CollectionProperty
from .nftGeneratorAddOn import AddOnPanel, MetadataProperties, AttributesProperties, Analyze, Generate
bl_info = {
"name": "NFT random generator",
"description": "Generate assets combinations",
"author": "Doudou",
"version": (1, 0, 0),
"blender": (3, 3, 1),
"category": "Scene"
}
addOnClasses = AddOnPanel, MetadataProperties, AttributesProperties, Analyze, Generate
def register():
from bpy.utils import register_class
for addOnClass in addOnClasses:
register_class(addOnClass)
bpy.types.Scene.generatorSettings=PointerProperty(type=MetadataProperties)
bpy.types.Scene.traitSettings=CollectionProperty(type=AttributesProperties)
def unregister():
from bpy.utils import unregister_class
for addOnClass in reversed(addOnClasses):
unregister_class(addOnClass)
del bpy.types.Scene.generatorSettings;
del bpy.types.Scene.traitSettings
if __name__=='__main__':
register()