OpenPype
OpenPype copied to clipboard
Bug: Nuke Write Node - Read from Rendered is offset if Nuke Slate is used
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.
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:
- Publish a render from Nuke script, with Nuke slate
- Use write node Read from rendered
- 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]