mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
Merge pull request #2405 from pypeclub/chore/OP-2151_Maya-extract-look-should-use-maketx-from-OpenPype-OIIO
Maya: Replaced PATH usage with vendored oiio path for maketx utility
This commit is contained in:
commit
2ea6da4b35
1 changed files with 9 additions and 1 deletions
|
|
@ -55,8 +55,16 @@ def maketx(source, destination, *args):
|
|||
str: Output of `maketx` command.
|
||||
|
||||
"""
|
||||
from openpype.lib import get_oiio_tools_path
|
||||
|
||||
maketx_path = get_oiio_tools_path("maketx")
|
||||
if not os.path.exists(maketx_path):
|
||||
print(
|
||||
"OIIO tool not found in {}".format(maketx_path))
|
||||
raise AssertionError("OIIO tool not found")
|
||||
|
||||
cmd = [
|
||||
"maketx",
|
||||
maketx_path,
|
||||
"-v", # verbose
|
||||
"-u", # update mode
|
||||
# unpremultiply before conversion (recommended when alpha present)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue