mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
add pointcache
This commit is contained in:
parent
ea69e9943e
commit
d3f4a397f4
1 changed files with 8 additions and 5 deletions
|
|
@ -1,6 +1,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
import pyblish.api
|
||||
from openpype.pipeline import PublishValidationError
|
||||
import hou
|
||||
|
||||
|
||||
class ValidateHoudiniNotApprenticeLicense(pyblish.api.InstancePlugin):
|
||||
|
|
@ -16,16 +17,18 @@ class ValidateHoudiniNotApprenticeLicense(pyblish.api.InstancePlugin):
|
|||
"""
|
||||
|
||||
order = pyblish.api.ValidatorOrder
|
||||
families = ["usd"]
|
||||
families = ["usd", "abc"]
|
||||
hosts = ["houdini"]
|
||||
label = "Houdini Apprentice License"
|
||||
|
||||
def process(self, instance):
|
||||
|
||||
import hou
|
||||
if hou.isApprentice() or 1:
|
||||
families = [instance.data["family"]]
|
||||
families += instance.data.get("families", [])
|
||||
families = " ".join(families).title()
|
||||
|
||||
if hou.isApprentice():
|
||||
raise PublishValidationError(
|
||||
("USD Publishing requires a non apprentice "
|
||||
"license."),
|
||||
"{} Publishing requires a non apprentice license."
|
||||
.format(families),
|
||||
title=self.label)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue