State:Closed|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:464455|TargetRelease:13.0v1|
Problem summary
The foundrySG_Example.py example and documentation do not work.
Customer reported version
nuke.12.1v3
Customer reported platform
10.15
Steps to reproduce
1) Setup a Shotgun account
2) Follow the documentation to setup the foundrySG_Example.py example:
https://learn.foundry.com/nuke/developers/latest/HieroPythonDevGuide/shotgun_example.html#installation *the pip install git command doesnt work on Windows, you need to manually install git before you can follow step 4 of the install instructions
3) Open Nuke Studio or Hiero
4) Import some footage, add it to the timeline and select it
5) In the FoundrySG menu, try the different options, most of them error. Depending on your clip name and if you use Nuke Studio or Hiero, you will get different results.
Expected behaviour
For the documentation to fully explain how to use the example, and the functions to work.
Actual behaviour
You get various different errors in the Script Editor when trying the different functions, like the follow:
Traceback (most recent call last):
File "C:/Users/Pete/.nuke\Python\Startup\foundrySG_Example.py", line 265, in selClipsToSg
clipVersion = int(re.search('_v(\d\d\d)',a).group(1))
AttributeError: 'NoneType' object has no attribute 'group'
Traceback (most recent call last):
File "C:/Users/Pete/.nuke\Python\Startup\foundrySG_Example.py", line 330, in selClipsTaskColour
r = taskListColours[clipTask][0]
KeyError: 'SATL'
Traceback (most recent call last):
File "C:/Users/Pete/.nuke\Python\Startup\foundrySG_Example.py", line 329, in selClipsTaskColour
clipTask = shot.name().split("_")[1]
IndexError: list index out of range
or when trying to install on windows:

Or when using the last two options in Hiero:
Traceback (most recent call last):
File "C:/Users/Pete/.nuke\Python\Startup\foundrySG_Example.py", line 484, in menu_sgPlaylistToTrack
playlistname = nuke.getInput('Enter Shotgun playlist name to pull to bottom video track:', 'Existing Playlist')
NotImplementedError: method not implemented
Reproduced by support
This bug has been reproduced in:
Nuke Studio / Hiero 12.2v4 - Windows 10, CentOS 7.6, macOS 10.15
Nuke Studio / Hiero 12.2v1 - Windows 10, CentOS 7.6, macOS 10.15
Earliest version tested
Nuke Studio / Hiero 12.2v1 - This feature did not exist before this version
We're sorry to hear that
Please tell us why