ID 603173 - The Shot Manager example script does not work in Nuke Studio/Hiero 16

Follow

Problem summary:

The Shot Manager example script does not work in Nuke Studio/Hiero 16

 

Customer reported version:

Nuke 16.0V6

 

Customer reported platform:
macOS 26

 

Steps to reproduce:
1) Follow the Shot Manager example installation instructions in the Hiero Python Developer Guide

2) Download the attached ShotData.xlsx file

3) Launch Nuke Studio, and observe Issue #1 printed to the console

wm.addWindow(hiero.ui.database_settings_panel, wm.kApplicationSection)                                                   ^^^^^^^^^^^^^^^^^^^^^^AttributeError: 'ui.WindowManager' object has no attribute 'kApplicationSection'

4) Fix this issue by using Workaround #1 below

5) Navigate to Window > Database Settings, and select the downloaded ShotData.xlsx file

6) Then, navigate to Shot Manager > Import from spreadsheet and observe Issue #2 in the console:

File "/Users/<username>/.nuke/Python/Startup/shot_manager_hiero.py", line 208, in create_track_from_data    bin_item.setColor(__get_task_colour(task_list))TypeError: Invalid arguments to core.BinItem.setColor

7) Fix this issue with Workaround #2

8) Navigate to Shot Manager > Import from spreadsheet and observe Issue #3 in the console:

RuntimeError: Selected time is wrong. Negative times and overlapping track items are not supported. Please select different time

 

Expected behavior:

The Shot Manager example script should perform as indicated in the guide, with no errors in the terminal/console.

 

Actual behavior:

When attempting to use the Shot Manager example in Nuke Studio/Hiero 16, a variety of different errors can occur which prevent the code from functioning correctly.

 

Workarounds:

Workaround #1
Change Line 29 in .nuke/Python/StartupUI/load_custom_menus.py from wm.addWindow(hiero.ui.database_settings_panel, wm.kApplicationSection) to one of the following: wm.addWindow(hiero.ui.database_settings_panel, 1) 

wm.addWindow(hiero.ui.database_settings_panel, hiero.ui.WindowManager.kApplicationSection)

 

Workaround #2
After line 66 in .nuke/Python/Startup/shot_manager_hiero.py, add an else clause as such:

else:        return QtGui.QColor(10,10,10)

 

Reproduced by the Development team

 

Earliest version tested:
Nuke 15.2v1 - This issue doesn't appear in this version and has regressed

    We're sorry to hear that

    Please tell us why