This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1821 from pypeclub/feature/houdini-cb-update
- Loading branch information
Showing
89 changed files
with
5,084 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,26 @@ | ||
# -*- coding: utf-8 -*- | ||
"""Houdini specific Avalon/Pyblish plugin definitions.""" | ||
import sys | ||
from avalon import houdini | ||
import six | ||
|
||
import hou | ||
from openpype.api import PypeCreatorMixin | ||
|
||
|
||
class Creator(PypeCreatorMixin, houdini.Creator): | ||
class OpenPypeCreatorError(Exception): | ||
pass | ||
|
||
|
||
class Creator(PypeCreatorMixin, houdini.Creator): | ||
def process(self): | ||
try: | ||
# re-raise as standard Python exception so | ||
# Avalon can catch it | ||
instance = super(Creator, self).process() | ||
self._process(instance) | ||
except hou.Error as er: | ||
six.reraise( | ||
OpenPypeCreatorError, | ||
OpenPypeCreatorError("Creator error: {}".format(er)), | ||
sys.exc_info()[2]) |
Oops, something went wrong.