mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
Fix refactor from openpype to ayon_core
This commit is contained in:
parent
1be40e7f14
commit
d25fb4f906
9 changed files with 25 additions and 27 deletions
|
|
@ -4,9 +4,8 @@ import re
|
|||
|
||||
import pyblish.api
|
||||
|
||||
from openpype.pipeline.create import get_subset_name
|
||||
from openpype.client import get_asset_by_name
|
||||
import openpype.hosts.houdini.api.usd as usdlib
|
||||
from ayon_core.pipeline.create import get_product_name
|
||||
import ayon_core.hosts.houdini.api.usd as usdlib
|
||||
|
||||
import hou
|
||||
|
||||
|
|
@ -114,16 +113,15 @@ class CollectUsdLayers(pyblish.api.InstancePlugin):
|
|||
layer_inst.data["usd_layer_save_path"] = save_path
|
||||
|
||||
project_name = context.data["projectName"]
|
||||
asset_doc = get_asset_by_name(project_name,
|
||||
asset_name=instance.data["asset"])
|
||||
variant_base = instance.data["variant"]
|
||||
subset = get_subset_name(
|
||||
family="usd",
|
||||
variant=variant_base + "_" + variant,
|
||||
task_name=context.data["anatomyData"]["task"]["name"],
|
||||
asset_doc=asset_doc,
|
||||
subset = get_product_name(
|
||||
project_name=project_name,
|
||||
# TODO: This should use task from `instance`
|
||||
task_name=context.data["anatomyData"]["task"]["name"],
|
||||
task_type=context.data["anatomyData"]["task"]["type"],
|
||||
host_name=context.data["hostName"],
|
||||
product_type="usd",
|
||||
variant=variant_base + "_" + variant,
|
||||
project_settings=context.data["project_settings"]
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@ import inspect
|
|||
|
||||
import pyblish.api
|
||||
|
||||
from openpype.pipeline.publish import (
|
||||
from ayon_core.pipeline.publish import (
|
||||
PublishValidationError,
|
||||
OptionalPyblishPluginMixin
|
||||
)
|
||||
from openpype.hosts.houdini.api.action import SelectROPAction
|
||||
from ayon_core.hosts.houdini.api.action import SelectROPAction
|
||||
|
||||
import hou
|
||||
from pxr import Usd, UsdShade, UsdGeom
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ from functools import partial
|
|||
|
||||
import pyblish.api
|
||||
|
||||
from openpype.pipeline.publish import PublishValidationError
|
||||
from openpype.hosts.houdini.api.action import SelectROPAction
|
||||
from openpype.hosts.houdini.api.usd import get_schema_type_names
|
||||
from ayon_core.pipeline.publish import PublishValidationError
|
||||
from ayon_core.hosts.houdini.api.action import SelectROPAction
|
||||
from ayon_core.hosts.houdini.api.usd import get_schema_type_names
|
||||
|
||||
import hou
|
||||
from pxr import Sdf
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@ import inspect
|
|||
|
||||
import pyblish.api
|
||||
|
||||
from openpype.pipeline.publish import (
|
||||
from ayon_core.pipeline.publish import (
|
||||
PublishValidationError,
|
||||
OptionalPyblishPluginMixin
|
||||
)
|
||||
from openpype.hosts.houdini.api.action import SelectROPAction
|
||||
from openpype.hosts.houdini.api.usd import get_schema_type_names
|
||||
from ayon_core.hosts.houdini.api.action import SelectROPAction
|
||||
from ayon_core.hosts.houdini.api.usd import get_schema_type_names
|
||||
|
||||
import hou
|
||||
from pxr import Sdf, UsdShade
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
import inspect
|
||||
|
||||
import pyblish.api
|
||||
from openpype.pipeline import PublishValidationError
|
||||
from openpype.hosts.houdini.api.action import SelectROPAction
|
||||
from ayon_core.pipeline import PublishValidationError
|
||||
from ayon_core.hosts.houdini.api.action import SelectROPAction
|
||||
|
||||
|
||||
class ValidateUSDOutputNode(pyblish.api.InstancePlugin):
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@ import inspect
|
|||
|
||||
import pyblish.api
|
||||
|
||||
from openpype.pipeline.publish import PublishValidationError, RepairAction
|
||||
from openpype.hosts.houdini.api.action import SelectROPAction
|
||||
from openpype.hosts.houdini.api.usd import get_usd_render_rop_rendersettings
|
||||
from ayon_core.pipeline.publish import PublishValidationError, RepairAction
|
||||
from ayon_core.hosts.houdini.api.action import SelectROPAction
|
||||
from ayon_core.hosts.houdini.api.usd import get_usd_render_rop_rendersettings
|
||||
|
||||
import hou
|
||||
import pxr
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
import os
|
||||
import pyblish.api
|
||||
|
||||
from openpype.pipeline import PublishValidationError
|
||||
from ayon_core.pipeline import PublishValidationError
|
||||
|
||||
|
||||
class ValidateUSDRenderProductNames(pyblish.api.InstancePlugin):
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import hou
|
|||
import inspect
|
||||
import pyblish.api
|
||||
|
||||
from openpype.pipeline import PublishValidationError
|
||||
from ayon_core.pipeline import PublishValidationError
|
||||
|
||||
|
||||
class ValidateUSDRenderProductPaths(pyblish.api.InstancePlugin):
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ import inspect
|
|||
|
||||
import pyblish.api
|
||||
|
||||
from openpype.hosts.houdini.api.action import SelectROPAction
|
||||
from openpype.pipeline import PublishValidationError
|
||||
from ayon_core.hosts.houdini.api.action import SelectROPAction
|
||||
from ayon_core.pipeline import PublishValidationError
|
||||
|
||||
import hou
|
||||
from pxr import Sdf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue