30 lines
674 B
Python
30 lines
674 B
Python
|
|
import bpy
|
|
from pathlib import Path
|
|
|
|
from bpy.types import (
|
|
Context,
|
|
Header,
|
|
Menu,
|
|
Panel,
|
|
UIList,
|
|
WindowManager,
|
|
WorkSpace,
|
|
)
|
|
|
|
from bpy_extras import asset_utils
|
|
from asset_library.common.bl_utils import get_object_libraries, get_addon_prefs
|
|
|
|
|
|
def draw_context_menu(self, context):
|
|
layout = self.layout
|
|
#asset = context.active_file
|
|
|
|
layout.operator("assetlib.open_blend_file", text="Open Blend File")#.filepath = asset.asset_data['filepath']
|
|
|
|
|
|
def draw_header(layout):
|
|
'''Draw the header of the Asset Browser Window'''
|
|
|
|
layout.separator()
|
|
#layout.operator("actionlib.store_anim_pose", text='Add Action', icon='FILE_NEW') |