mercredi 14 mars 2018

Create a checkBox for each item in a list in Nuke

This is my problem : I want to create a CheckBox for each node selected. I've managed to create the CheckBoxes for each node with the correct names but the problem is that where they are selected in the checkbox and print the result only return the firts node selected or a bolean answer (True or False), no matter what check box is selected. I can't find the answer. Thanks for everything!

import nuke


nodeNames = [n.name() for n in nuke.allNodes('Write')]

names = []
for s in nuke.allNodes('Write'):
    n = s['name'].value()
    names.append(n)
#print names
#len(names)

writeNodes = ( ", ".join( str(e) for e in names ) )


p = nuke.Panel ('TEST')

for items in names:
    de = p.addBooleanCheckBox(items,'True')    

p.show()




Aucun commentaire:

Enregistrer un commentaire