title: # Error: unindent does not match any outer indentation level
body: <p>I'am new to Python and When I compile the Python code below, I get</p>
  
  <h1>Error: unindent does not match any outer indentation level</h1>
  
  <p>plz help me to fix </p>
  
  <h2>this is my script</h2>
  
  <pre><code>from maya import cmds
  
  sel = cmds.ls(sl=1)
  controller = None
  preParent = None
  for i in sel:
      cmds.select(cl=1)
      if controller == None or cmds.objExists(controller) == False:
          controller1 = cmds.circle( nr=(1, 0, 0 ), name = i+"Ctrl")[0]
      else:
           controller1 = cmds.duplicate(controller, name = i + "Ctrl")[0]
  
       grp = cmds.group(em =1, name = i+"Grp")
       cmds.parent(controller1, grp)
       pc = cmds.parentConstraint(i, grp, mo=0)
       cmds.delete(pc)
       cmds.pointConstraint(controller1, i, mo=0)
       cmds.orientConstraint(controller1, i, mo=0)
       if preParent != None:
           cmds.parent(grp, preParent)
       preParent = controller1
  </code></pre>