mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
maya project shelves from settings
This commit is contained in:
parent
8e6abe759a
commit
6c12804937
1 changed files with 4 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import os
|
||||
from pype.api import config
|
||||
from pype.api import project_settings
|
||||
import pype.hosts.maya.lib as mlib
|
||||
from maya import cmds
|
||||
|
||||
|
|
@ -7,14 +7,14 @@ from maya import cmds
|
|||
print("starting PYPE usersetup")
|
||||
|
||||
# build a shelf
|
||||
presets = config.get_presets()
|
||||
shelf_preset = presets['maya'].get('project_shelf')
|
||||
settings = project_settings(os.environ['AVALON_PROJECT'])
|
||||
shelf_preset = settings['maya'].get('project_shelf')
|
||||
|
||||
|
||||
if shelf_preset:
|
||||
project = os.environ["AVALON_PROJECT"]
|
||||
|
||||
icon_path = os.path.join(os.environ['PYPE_PROJECT_SCRIPTS'], project,"icons")
|
||||
icon_path = os.path.join(os.environ['PYPE_PROJECT_SCRIPTS'], project, "icons")
|
||||
icon_path = os.path.abspath(icon_path)
|
||||
|
||||
for i in shelf_preset['imports']:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue