[Bf-python] delCurve()

Johnny Matthews johnny.matthews at gmail.com
Mon Oct 31 01:27:10 CET 2005


I have this function
  def verifyIpocurve(ky,index):
ipo = ky.getIpo()
idx = "Key " + str(index)
crv = ipo.getCurve(idx)
if crv != None:
ipo.delCurve(idx)
crv = ipo.addCurve(idx)
crv.setInterpolation("Linear")
return crv
where ky is a Mesh.getKey() object and index is a shape key index
 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?


--
Johnny Matthews
johnny.matthews at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20051030/a788e440/attachment.html>


More information about the Bf-python mailing list