mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Use get_output_parameter
This commit is contained in:
parent
669a2256ef
commit
cca97a036b
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue