ID 229725 - Toolbar (56) knob gets converted to a Tab (20) knob when saving or copying

Follow

Problem summary

When copying or saving a BeginToolbar/EndToolbar (56) knob, Nuke returns a Tab BeginGroup/EndGroup (20) knob instead. 

Developer Quote:

when we serialize the node for copying or saving the script, the type returned is TAB_KNOB=20 instead of BEGIN_GROUP=56, the subtype of tab_knob. 

Additionally, when creating the Toolbar knob, it ignores the TOOLBAR_* flags, so it cannot be created at the top of the Viewer.

Steps to reproduce

1) Open Nuke 

2) Paste in the code below, not the position of the toolbar is not at the top:

NoOp {

 name NoOp1

 addUserKnob {20 User}

 addUserKnob {56 Toolbar + TOOLBAR_TOP n 1}

 addUserKnob {7 Double }

 addUserKnob {56 endToolbar n -1}

}

3) Copy and paste the node, it will no longer be a toolbar. Saving and reopening the Nuke script does the same thing.

Reproduced by support
This problem has been reproduced on:

Nuke 10.0v3 - Windows 10 - MacOSX 10.11

Nuke 10.0v1 - Windows 10

Nuke 9.0v9 - Windows 10

Nuke 9.0v1 - Windows 10

Nuke 8.0v6 - Windows 10 - MacOSX 10.11

Expected behaviour

For the knob to remain a toolbar knob

Actual behaviour
The toolbar (56) knob became a tab (20) knob

    We're sorry to hear that

    Please tell us why