move unreal to self contained host

This commit is contained in:
Milan Kolar 2021-02-02 10:32:59 +01:00
parent 56f022012a
commit ec75ceb73e
15 changed files with 10 additions and 10 deletions

View file

@ -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"]

View file

@ -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():

View file

@ -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):

View file

@ -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,
)