scriptJob on attributeChanged using disregardIndex?

scriptJob on attributeChanged using disregardIndex?

Anonymous
Not applicable
348 Views
0 Replies
Message 1 of 1

scriptJob on attributeChanged using disregardIndex?

Anonymous
Not applicable

Hey guys,

 

As many have done before, I am trying to detect the add or remove of keyframes using a scriptJob. To do so, I am attempting to monitor the change in the animation curve's compound attribute KTV.

 

def CurveKeysChangedCB():
    print "CurveKeysChangedCB()"
curveName="pCube1_translateX"
cmds.scriptJob(cu=True,dri=True,ac=[curveName+".ktv",CurveKeysChangedCB])

 
However regardless of the adding or removing of keys, or the changing of key values, attributes in this multi will not trigger the scriptJob.

Any ideas?

Thanks!
-Kim

0 Likes
349 Views
0 Replies
Replies (0)