Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Python / AttributeError: 'FBFCurve' object has no attribute 'KeyDelete'
  RSS 2.0 ATOM  

AttributeError: 'FBFCurve' object has no attribute 'KeyDelete'
Rate this thread
 
59703
 
Permlink of this thread  
avatar
  • Location: Stockholm
  • Total Posts: 43
  • Joined: 23 November 2007 03:50 PM

Porting some scripts from MoBu 7.5 to MoBu2012…

myFCurve.KeyDelete(i,i)
and
myFCurve.KeyRemove(i)

fails..

According to the documentation, these still exist. Any ideas?



Replies: 1
/img/forum/dark/default_avatar.png

So, it has been changed (undocumented) to:
myFCurve.KeyDeleteByIndexRange(index,index)
and you can also use
myFCurve.KeyDeleteByTimeRange .... I guess it takes (FBTime,FBTime) as argument but I have not tried. Could be a (FBTimeSpan)

deleting a single key is as such myFCurve.KeyDeleteByIndexRange(i,i)

Hope this helps.

Author: Oskar Holmstrand

Replied: 05 September 2011 04:22 AM  
avatar
  • k_thod
  • Posted: 04 November 2011 03:09 AM

Thank’s a lot for this one !



Replies: 0