<div>I have this function</div>
<div> </div>
<div> </div>
<div>def verifyIpocurve(ky,index):<br> ipo = ky.getIpo()<br> idx = "Key " + str(index)<br> crv = ipo.getCurve(idx)<br> if crv != None:<br> ipo.delCurve(idx)<br> crv = ipo.addCurve(idx)<br> crv.setInterpolation
("Linear")<br> return crv<br clear="all"></div>
<div>where ky is a Mesh.getKey() object and index is a shape key index</div>
<div> </div>
<div>The first time I run this on an object all goes well, but the 2nd time on the same key and index gives "ValueError: Ipo curve already exists" But if the curve already exists, it is supposed to delete it first....any ideas?
</div>
<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
<div><br>-- <br>Johnny Matthews<br><a href="mailto:johnny.matthews@gmail.com">johnny.matthews@gmail.com</a> </div></blockquote>