Problem summary
Create Comp fails when only custom shot templates (export presets) are available
Create Comp Error
An error occurred during script export.
'NoneType' object has no attribute 'name'
Customer reported version
nuke.10.5v2
Customer reported platform
centos6
Steps to reproduce
1) setup requires a pre-existing custom shot template, so, with a clip the Timeline, choose 'Export' and in the Export dialog, select
'Basic Nuke Shot With Annotations'
in the Local Presets panel, and click the
'Duplicate selected preset'
button, and you will get a new preset called
'Basic Nuke Shot With Annotations1'
2) click 'Close' and 'Yes' to the save dialog, then exit Studio; the custom preset will be saved to your .nuke dir in /TaskPresets
3) download this python code which enables you to hide the default presets
https://gist.github.com/antiero/32a243082064f0f5bf160f9229296a2b
(hide_default_presets.py attached to this bug has already been modified to name all of the default Studio presets found in Nuke Studio10.5v2)
4) Launch Nuke Studio from command line with the path/filename of the customized .py file described in step 2; e.g.
/Applications/Nuke10.5v2/Nuke10.5v2.app/Contents/MacOS/Nuke10.5v2 --studio <path>/hide_default_presets.py
5) In Project Settings > Export specify 'Project Root' folder
6) Import a clip and drag it to the Timeline
7) Right click on the clip in the Timeline and choose Effects > Create Comp
8) In the Project Shot Preset dialog, choose 'OK' to select
'Basic Nuke Shot With Annotations1'
Workaround
at step 7, choose Effects > Create Comp Special and then simply close the Export dialog; then you can perform step 7 and 8 as above and and the comp will be created without error
Reproduced by support
OS 10.10.5
Nuke Studio10.0v5, 10.5v2