OpenPype icon indicating copy to clipboard operation
OpenPype copied to clipboard

Bug: Nuke Write Node - Read from Rendered is offset if Nuke Slate is used

Open jrsndl opened this issue 2 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior:

Nuke Render "Read From Rendered" button loads slate if it is present, but doesn't offset the read node accordingly. image

Expected Behavior:

Read node should be offset to script start - 1 (or use expression instead of start at)

Version

3.16.4

What platform you are running OpenPype on?

Windows

Steps To Reproduce:

  1. Publish a render from Nuke script, with Nuke slate
  2. Use write node Read from rendered
  3. Note that read node is offset compared to write node

Are there any labels you wish to add?

  • [X] I have added the relevant labels to the bug report.

Relevant log output:

No response

Additional context:

Assuming that when render starts one frame earlient than script start means slate is present, this can fix the issue:

elif (comp_start - 1) == int(ndata['firstframe']):
    read.knob('frame_mode').setValue("1")
    read.knob('frame').setValue(str(comp_start - 1))

https://github.com/ynput/OpenPype/blob/594bf8a1f66c8a22112fbb2748b1082db89f2df8/openpype/hosts/nuke/startup/write_to_read.py#L97

[cuID:OP-6725]

jrsndl avatar Aug 25 '23 09:08 jrsndl