title: why am i getting an object invalid error?
body: <p>I think there is something wrong with my naming convention but I'm not sure how to fix it. it keeps giving me an invalid object even when tried to name it based on the vertex please help.  </p>
  
  <pre><code>for i in range(1,100):
      print i
  
  def cactus():
  #creating base of cactus
      cmds.polyCylinder(sc=1,sa=10,sh=10, n= "cactus1_Base["+str(i)+"]")
  </code></pre>
  
  <p>The error I'm getting is:</p>
  
  <pre><code># Error: TypeError: file &lt;maya console&gt; line 17: Object cactus1_Base[99].e[140:169] is invalid this is the error im getting and the code is
  </code></pre>