State:Closed|icon_bug|icon_nuke|database:public|Resolution:Fixed|TargetRelease:13.2v4|BugID:514217|
Problem summary
Importing clips via Python does not work in Sync client sessions and can sometimes crash Nuke Studio/Hiero.
Customer reported version
Nuke 13.2v2
Customer reported platform
Windows 10
Steps to reproduce
1) In Nuke Studio/Hiero, add a Script Editor tab.
2) Select File > Host Session.
3) Open a second Nuke Studio/Hiero session on the same machine/
4) Select File > Connect to Session then connect to the Host machine session.
5) Run the following code in the Script Editor to bring in a clip to the Project bin, ensuring to change line 3 for the file:
project = hiero.core.projects()[0] clipsBin = project.clipsBin() clipPath = "path/to/file" #change the path to specified file clip1 = clipsBin.createClip(clipPath) sequence = hiero.core.Sequence("tempSequence") clipsBin.addItem(hiero.core.BinItem(sequence)) track = hiero.core.VideoTrack("VideoTrack1") trackItem = track.createTrackItem("shot001") trackItem.setSource(clip1) trackItem.setTimelineIn(0) trackItem.setTimelineOut(trackItem.sourceDuration() - 1) track.addItem(trackItem) sequence.addTrack(track) cv = hiero.ui.currentViewer() cv.setSequence(sequence, 0)6) Observe the Host session Project bin for changes made.
We're sorry to hear that
Please tell us why