Compare commits

...

2 Commits

Author SHA1 Message Date
stilobique ebbb80a2da Add icon test, not enable 2024-05-16 22:31:59 +02:00
stilobique 9cbe89e4b8 Rename the main folder 2024-05-16 22:12:11 +02:00
14 changed files with 16 additions and 0 deletions
@@ -1,4 +1,18 @@
import bpy import bpy
import os
# from pathlib import Path
#
# preview_collection = {}
# icon_sauropod_path = Path(os.path.dirname(os.path.abspath(__file__)), "icons")
#
# pcoll = bpy.utils.previews.new()
#
# for entry in os.scandir(icon_sauropod_path):
# if entry.name.endswith(".png"):
# name = os.path.splitext(entry.name)[0]
# print(f'[Pipeline] Add icon "{name}"')
# pcoll.load(name.upper(), entry.path, "IMAGE")
class GRAOU_PT_panel(bpy.types.Panel): class GRAOU_PT_panel(bpy.types.Panel):
@@ -11,6 +25,8 @@ class GRAOU_PT_panel(bpy.types.Panel):
def draw(self, context): def draw(self, context):
layout = self.layout layout = self.layout
# layout.label(text='Graou Pipeline', icon_value=pcoll["GRAOU"].icon_id)
col = layout.column(align=True) col = layout.column(align=True)
col.label(text='Main Config:') col.label(text='Main Config:')
col.operator('graou.build_scene', text='Init Scene', icon='OUTLINER') col.operator('graou.build_scene', text='Init Scene', icon='OUTLINER')
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB