mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
replace avalon imports in unreal
This commit is contained in:
parent
98ba730a99
commit
ee93213cf1
2 changed files with 10 additions and 8 deletions
|
|
@ -2,8 +2,10 @@
|
||||||
"""Load camera from FBX."""
|
"""Load camera from FBX."""
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from avalon import io
|
from openpype.pipeline import (
|
||||||
from openpype.pipeline import AVALON_CONTAINER_ID
|
AVALON_CONTAINER_ID,
|
||||||
|
legacy_io,
|
||||||
|
)
|
||||||
from openpype.hosts.unreal.api import plugin
|
from openpype.hosts.unreal.api import plugin
|
||||||
from openpype.hosts.unreal.api import pipeline as unreal_pipeline
|
from openpype.hosts.unreal.api import pipeline as unreal_pipeline
|
||||||
import unreal # noqa
|
import unreal # noqa
|
||||||
|
|
@ -87,8 +89,8 @@ class CameraLoader(plugin.Loader):
|
||||||
factory=unreal.LevelSequenceFactoryNew()
|
factory=unreal.LevelSequenceFactoryNew()
|
||||||
)
|
)
|
||||||
|
|
||||||
io_asset = io.Session["AVALON_ASSET"]
|
io_asset = legacy_io.Session["AVALON_ASSET"]
|
||||||
asset_doc = io.find_one({
|
asset_doc = legacy_io.find_one({
|
||||||
"type": "asset",
|
"type": "asset",
|
||||||
"name": io_asset
|
"name": io_asset
|
||||||
})
|
})
|
||||||
|
|
@ -172,8 +174,8 @@ class CameraLoader(plugin.Loader):
|
||||||
factory=unreal.LevelSequenceFactoryNew()
|
factory=unreal.LevelSequenceFactoryNew()
|
||||||
)
|
)
|
||||||
|
|
||||||
io_asset = io.Session["AVALON_ASSET"]
|
io_asset = legacy_io.Session["AVALON_ASSET"]
|
||||||
asset_doc = io.find_one({
|
asset_doc = legacy_io.find_one({
|
||||||
"type": "asset",
|
"type": "asset",
|
||||||
"name": io_asset
|
"name": io_asset
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ from unreal import EditorLevelLibrary as ell
|
||||||
from unreal import EditorAssetLibrary as eal
|
from unreal import EditorAssetLibrary as eal
|
||||||
|
|
||||||
import openpype.api
|
import openpype.api
|
||||||
from avalon import io
|
from openpype.pipeline import legacy_io
|
||||||
|
|
||||||
|
|
||||||
class ExtractLayout(openpype.api.Extractor):
|
class ExtractLayout(openpype.api.Extractor):
|
||||||
|
|
@ -61,7 +61,7 @@ class ExtractLayout(openpype.api.Extractor):
|
||||||
family = eal.get_metadata_tag(asset_container, "family")
|
family = eal.get_metadata_tag(asset_container, "family")
|
||||||
|
|
||||||
self.log.info("Parent: {}".format(parent))
|
self.log.info("Parent: {}".format(parent))
|
||||||
blend = io.find_one(
|
blend = legacy_io.find_one(
|
||||||
{
|
{
|
||||||
"type": "representation",
|
"type": "representation",
|
||||||
"parent": ObjectId(parent),
|
"parent": ObjectId(parent),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue