Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Python / key everything on a constraint
  RSS 2.0 ATOM  

key everything on a constraint
Rate this thread
 
46602
 
Permlink of this thread   Subscribe to this thread
avatar
  • Seb123
  • Posted: 26 August 2010 04:45 AM
  • Total Posts: 92
  • Joined: 05 November 2009 10:41 AM

Hi,

I have a constraint on which I would like to key the translation offset, rotation offset and weight at the current time and one frame before.
All of them should key the values they have at when I run this script.
I have looked at the help docs, but I don’t quite get it

what i have right now is this for finding the constraints.

for c in lCons:
    if (
c.LongName == propName or c.LongName == offCons):  
        
c.Active False
        c
.Snap ()

Any idea ??? 

Thanks



Replies: 0




   
  Settings Choose Theme color: