ID 514217 - Importing clips via Python does not work in Sync client sessions and can sometimes crash Nuke Studio/Hiero

Follow

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.
7) Review the client session for any changes made.
 

 
Expected behavior
The synced session should display any changes made via Python, such as adding a clip to the Project bin.
 
Actual behavior
The synced session does not add the files correctly via Python, and needs to be force-pushed an update to be synced correctly. Sometimes the Client session will crash.
 
Workaround
There is no available workaround at this time.
 
Reproduced by Support in:
Nuke Studio/Hiero 13.2v2 - Windows 10, CentOS 7
Nuke Studio/Hiero 13.2v1 - Windows 10
Nuke Studio/Hiero 13.1v1 - Windows 10
Nuke Studio/Hiero 13.0v1 - Windows 10
Nuke Studio/Hiero 12.2v1 - Windows 10, CentOS 7
 
Earliest version tested
Nuke Studio/Hiero 12.1v5 - This feature did not exist before this version (Sync Review)
 

    We're sorry to hear that

    Please tell us why