Hey kylesim,
Try this code in your "Export" python button.. should do what you want.
Instead of hardcoding the name of the Group Node I simply got the name of the
nuke.thisNode() and used that to drive the nuke.toNode() command.
I am not sure what your nuke.root().begin() command is for though...
n=nuke.thisNode()
name = n.name()
nuke.root().begin()
myGrade = nuke.createNode('Grade')
whitePointValue=nuke.toNode(name)['whitepoint'].getValue()
blackPointValue=nuke.toNode(name)['blackpoint'].getValue()
myGrade['whitepoint'].setValue(whitePointValue)
myGrade['blackpoint'].setValue(blackPointValue)
nuke.delete(n)
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python