title: Setting default value of a drop down menu in nuke with python
body: <p>I am relatively new to python still, and I have been trying to write some simple things do nuke overrides for my work style. One of them being a remove node.</p>
  
  <pre><code>import nuke
  
  def removeOverride():
      nuke.thisNode()["operation"].setValue("keep")
      nuke.thisNode()["channels"].setValue("rgb")
  ##Adds end lined commands to run when node is created by the user.
  
  nuke.addOnUserCreate(removeOverride, nodeClass = "remove")
  </code></pre>
  
  <p>The above code is my attempt to change the values in the operations knob to keep instead of the nuke default of remove. As in my work flow I find it easier to just tell it which channels I want I want to keep.</p>