-
Notifications
You must be signed in to change notification settings - Fork 1
/
panel.py
31 lines (21 loc) · 870 Bytes
/
panel.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
import bpy
class NFTGEN_PT_Panel(bpy.types.Panel):
bl_idname = "NFTGEN_PT_Panel"
bl_label = "GUI Panel for NFT generator addon"
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_category = "NFT"
bl_context = "objectmode"
def draw(self, context):
layout = self.layout
row = layout.box()
row.label(text="NFT Generator Addon")
row = layout.box()
row.label(text="Select Feature Collections")
row.label(text="Prepare: it loads the features into the system and checks for erros")
row.prop(context.scene, "theChosenObject")
print('Selected: {}'.format(bpy.types.Scene.theChosenObject))
row.operator("object.prepare_nft")
box = layout.box()
box.label(text="Render All NFT!")
box.operator("object.generator_nft")