Get the comp from render_instance instead of get_current_comp()

This commit is contained in:
Jacob Danell 2023-10-02 16:12:20 +02:00
parent 441bb73afc
commit bd31dbaf35

View file

@ -6,7 +6,6 @@ from openpype.pipeline import publish
from openpype.pipeline.publish import RenderInstance
from openpype.hosts.fusion.api.lib import (
get_frame_path,
get_current_comp,
)
@ -148,7 +147,7 @@ class CollectFusionRender(
start = render_instance.frameStart - render_instance.handleStart
end = render_instance.frameEnd + render_instance.handleEnd
comp = get_current_comp()
comp = render_instance.workfileComp
path = comp.MapPath(
render_instance.tool["Clip"][
render_instance.workfileComp.TIME_UNDEFINED