mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
moved resources changed in code
This commit is contained in:
parent
21645bb30b
commit
308d643bae
2 changed files with 4 additions and 8 deletions
|
|
@ -70,16 +70,13 @@ def override_component_mask_commands():
|
|||
def override_toolbox_ui():
|
||||
"""Add custom buttons in Toolbox as replacement for Maya web help icon."""
|
||||
|
||||
import pype
|
||||
res = os.path.join(os.path.dirname(os.path.dirname(pype.__file__)),
|
||||
"res")
|
||||
icons = os.path.join(res, "icons")
|
||||
|
||||
import avalon.tools.sceneinventory as inventory
|
||||
import avalon.tools.loader as loader
|
||||
from avalon.maya.pipeline import launch_workfiles_app
|
||||
import mayalookassigner
|
||||
from pype.api import resources
|
||||
|
||||
icons = resources.get_resource("icons")
|
||||
|
||||
# Ensure the maya web icon on toolbox exists
|
||||
web_button = "ToolBox|MainToolboxLayout|mayaWebButton"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import os
|
||||
import nuke
|
||||
from avalon.nuke import lib as anlib
|
||||
from pype.api import resources
|
||||
|
||||
|
||||
def set_context_favorites(favorites={}):
|
||||
|
|
@ -9,9 +10,7 @@ def set_context_favorites(favorites={}):
|
|||
Argumets:
|
||||
favorites (dict): couples of {name:path}
|
||||
"""
|
||||
dir = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
|
||||
icon_path = os.path.join(dir, 'res', 'icons', 'folder-favorite3.png')
|
||||
|
||||
icon_path = resources.get_resource("icons", "folder-favorite3.png")
|
||||
for name, path in favorites.items():
|
||||
nuke.addFavoriteDir(
|
||||
name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue