State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:546673|
Problem summary
Setting trackItem.addToNukeScript()'s outputToSequenceFormat argument to False doesn't work if the clip has a Clip Reformat applied to it
If the clip doesn't a Clip Reformat then the outputToSequenceFormat argument works as expected
Customer reported version
hiero.12.2v8
Customer reported platform
centos7
Steps to reproduce
1) Open Hiero
2) Import any 4K footage, and add it to the timeline, making sure the Sequence Output Resolution is 1920x1080 HD_1080
3) Select the clip on the timeline, and in it's Sequence>Properties tab, set the Clip Reformat to To Sequence Resolution
4) With the clip on the timeline selected, run the following code in the Script Editor, changing the <path/to/new/script> path to a valid path:
import hiero.core.nuke as hnuke script = hnuke.ScriptWriter() trackItem = hiero.ui.getTimelineEditor(hiero.ui.activeSequence()).selection()[0] trackItem.addToNukeScript(script, outputToSequenceFormat=False) script.writeToDisk("<path/to/new/script>.nk") 
import hiero.core.nuke as hnuke script = hnuke.ScriptWriter() trackItem = hiero.ui.getTimelineEditor(hiero.ui.activeSequence()).selection()[0] nodes = trackItem.addToNukeScript() for node in nodes: if not isinstance(node, hiero.core.nuke.ReformatNode): script.addNode(node) script.writeToDisk("<path/to/new/script>.nk") We're sorry to hear that
Please tell us why