ID 586885 - Setting In/Out points via Python does not work in Sync Review

Follow

Problem summary
Setting In/Out points via Python does not work in Sync Review.
This issue appears to be because hiero.core.SequenceBase.setInTime() and hiero.core.SequenceBase.setOutTime() do not send events.EventType.kInOutPointsChanged messages.
 
Customer reported version
Hiero 15.1v2
 
Customer reported platform
Rocky 9 and macOS 14
 
Steps to reproduce
 
1) Open Nuke Studio.
 
2) Import a clip (File > Import File(s)...) and drop it on the timeline.

3) Switch to the Sync Session workspace, then press Host, leaving the settings at default and Start.

4) Open a second Nuke Studio session.
 
5) In the second session, switch to the Sync Session workspace, then press Connect, leaving the setting at default and Connect.
 
6) Back in the host session run the following lines of code in the Script Editor:

hiero.ui.activeSequence().setInTime(10)hiero.ui.activeSequence().setOutTime(90)
 
7) Notice that the In/Out points have not been set in the client session.
 
Expected behaviour
Setting In/Out points via Python in the host session should automatically set them in the client session.
 
Actual behaviour
Setting In/Out points via Python does not get synced to the client session.
 
Workaround
The following code will allow you to send the the event through Python, and update the In/Out points in the client session:
def sendInOutPointsChangedEvent(sequence):     try:         inTime = sequence.inTime()     except:         inTime = -1     try:         outTime = sequence.outTime()     except:         outTime = -1     hiero.core.events.sendEvent('kInOutPointsChanged', None,                                 sequence=sequence,                                 inTime=inTime,                                 outTime=outTime,                                 playheadIndex=sequence.activePlayhead()) seq = hiero.ui.activeSequence() seq.setInTime(20) seq.setOutTime(80) sendInOutPointsChangedEvent(seq)
 
Reproduced by support
This bug has been reproduced in:
Nuke Studio 15.1v3 - Windows 11 - macOS 12
Nuke Studio 12.2v1 - Windows 11 - macOS 12
 
Earliest version tested
Nuke Studio 12.2v1
- Sync Review did not exist before this version
 

    We're sorry to hear that

    Please tell us why