addNewKey not working

addNewKey not working

alecf
Enthusiast Enthusiast
287 Views
1 Reply
Message 1 of 2

addNewKey not working

alecf
Enthusiast
Enthusiast
Hey there.

I created a "Key All" button in a UI that iterates through a bunch of controllers to set keys on position & rotation. addNewKey seems to be what I should use, but it just isn't working.

My rotation is a rotation_list, with three euler_xyz underneath it.
I want to key the third euler_xyz track on the current frame.

So, here's what I tried:

indirect method -
addNewKey $objectName.rotation.controller currentTime

explicit method -
addNewKey $objectName.rotation.controller.ThirdRot.controller currentTime

Neither works. What happens is that once I addNewKey and then rotate the control, the values of the existing keys become the values of the control's current position.

I've looked into "on animate" but that doesn't seem to be what I want.

Any hints on what could be causing this behavior?

Thanks,

Alec
0 Likes
288 Views
1 Reply
Reply (1)
Message 2 of 2

alecf
Enthusiast
Enthusiast
nevermind. it seems Set Key has to be active for this to work.
Unfortunately, there doesn't seem to be a way to determine whether or not Set Key is active or not...there's just a way to toggle it with "max set key mode".

Answers one question and suggests another....
0 Likes