mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #961 from pypeclub/feature/unreal-to-3.0
Refactor Unreal to 3.0 structure
This commit is contained in:
commit
f1e7525f39
15 changed files with 10 additions and 10 deletions
|
|
@ -7,10 +7,7 @@ from pype.hosts.celaction import api as celaction
|
|||
|
||||
class CelactionPrelaunchHook(PreLaunchHook):
|
||||
"""
|
||||
This hook will check if current workfile path has Unreal
|
||||
project inside. IF not, it initialize it and finally it pass
|
||||
path to the project by environment variable to Unreal launcher
|
||||
shell script.
|
||||
Bootstrap celacion with pype
|
||||
"""
|
||||
workfile_ext = "scn"
|
||||
app_groups = ["celaction"]
|
||||
|
|
|
|||
|
|
@ -3,13 +3,16 @@ import logging
|
|||
|
||||
from avalon import api as avalon
|
||||
from pyblish import api as pyblish
|
||||
from pype import PLUGINS_DIR
|
||||
import pype.hosts.unreal
|
||||
|
||||
logger = logging.getLogger("pype.hosts.unreal")
|
||||
|
||||
PUBLISH_PATH = os.path.join(PLUGINS_DIR, "unreal", "publish")
|
||||
LOAD_PATH = os.path.join(PLUGINS_DIR, "unreal", "load")
|
||||
CREATE_PATH = os.path.join(PLUGINS_DIR, "unreal", "create")
|
||||
HOST_DIR = os.path.dirname(os.path.abspath(pype.hosts.unreal.__file__))
|
||||
PLUGINS_DIR = os.path.join(HOST_DIR, "plugins")
|
||||
PUBLISH_PATH = os.path.join(PLUGINS_DIR, "publish")
|
||||
LOAD_PATH = os.path.join(PLUGINS_DIR, "load")
|
||||
CREATE_PATH = os.path.join(PLUGINS_DIR, "create")
|
||||
INVENTORY_PATH = os.path.join(PLUGINS_DIR, "inventory")
|
||||
|
||||
|
||||
def install():
|
||||
|
|
@ -4,7 +4,7 @@ from pype.lib import (
|
|||
PreLaunchHook,
|
||||
ApplicationLaunchFailed
|
||||
)
|
||||
from pype.hosts.unreal import lib as unreal_lib
|
||||
from pype.hosts.unreal.api import lib as unreal_lib
|
||||
|
||||
|
||||
class UnrealPrelaunchHook(PreLaunchHook):
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import unreal
|
||||
from pype.hosts.unreal.plugin import Creator
|
||||
from pype.hosts.unreal.api.plugin import Creator
|
||||
from avalon.unreal import (
|
||||
instantiate,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue