title: maya python getting and using the result of checkbox
body: <p>I have a script asking the user to choose an axis of symmetry using checkboxes.  I then wish use that result in another function to create a mirroring tool.  So far, when I try to query the checkbox I keep getting the following error:</p>
  
  <blockquote>
    <p>RuntimeError: file  line 81: Object <code>xAxisBox</code> not found</p>
  </blockquote>
  
  <p>I'm a beginner so I apologize if this is obvious, but where am I going wrong?<br>
  The relevant code goes as follows:</p>
  
  <pre><code>    xAxisBox = cmds.checkBox(l="x")
      yAxisBox = cmds.checkBox(l="y")
      zAxisBox = cmds.checkBox(l="z")
      btAxis=cmds.button( label = "Do the thing!", command = "Blendy();")
  
      def Blendy ():
  
      xCheck = cmds.checkBox('xAxisBox', query=True, value = True)
      yCheck = cmds.checkBox('yAxisBox', query=True, value = True)
      zCheck = cmds.checkBox('zAxisBox', query=True, value = True)
      print xCheck
      print yCheck
      print zCheck
  </code></pre>