Pythoned Group nodes attribute disapears

I’m starting programming in python for nuke. I’ve done a script that checks an exr contents and creates a grouped comp tree based on it. For each layer in the exr file I create a colorCorrect node and publish some of its attributes in a group. Everything goes Ok until the user saves and reopens the file. When we do this, all of the published attributes dissapear.

Code:

if doGroup:
        grp = nuke.nodes.Group()
        nuke.Group.begin(grp)
        grp.setInput(0,readNode)
        readNode = nuke.nodes.Input()

...Create nodes based in an exr contents here and append all created color correct nodes into colorCorrectList variable ...       
               
if doGroup:
    for index, cc in enumerate(colorCorrectList):
                       
        tabKnob = nuke.Tab_Knob(shuffleList[index].name())
        grp.addKnob(tabKnob)
        grp.addKnob(cc['saturation'])
        grp.addKnob(cc['contrast'])
        grp.addKnob(cc['gamma'])
        grp.addKnob(cc['gain'])
        grp.addKnob(cc['offset'])


No Responses to “Pythoned Group nodes attribute disapears”

Post a Comment