From cca97a036bcf9acc1c7a8d1bf55d0df203fd2388 Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Wed, 29 Mar 2023 14:57:33 +0200 Subject: [PATCH] Use `get_output_parameter` --- openpype/hosts/houdini/plugins/publish/extract_opengl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openpype/hosts/houdini/plugins/publish/extract_opengl.py b/openpype/hosts/houdini/plugins/publish/extract_opengl.py index 8357e188a8..280d69b287 100644 --- a/openpype/hosts/houdini/plugins/publish/extract_opengl.py +++ b/openpype/hosts/houdini/plugins/publish/extract_opengl.py @@ -2,7 +2,7 @@ import os import pyblish.api import openpype.api -from openpype.hosts.houdini.api.lib import render_rop +from openpype.hosts.houdini.api.lib import render_rop, get_output_parameter import hou @@ -21,7 +21,7 @@ class ExtractOpenGL(openpype.api.Extractor): # Get the filename from the filename parameter # `.evalParm(parameter)` will make sure all tokens are resolved - output = ropnode.evalParm("picture") + output = get_output_parameter(ropnode).eval() staging_dir = os.path.dirname(output) instance.data["stagingDir"] = staging_dir file_name = os.path.basename(output)