Notifications
Clear all

[Closed] Set key at frame 0?

Here is the problem. When the Auto Key Default Frame checkbox in the Preference Settings – Animation tab(see the image) is turned Off the code below will not create a key at frame 0.


(
	animate on at time 0 ($.position.controller.value = [0,0,10])
	
	animate on at time 30 ($.position.controller.value = [0,0,100])
)

Image:

4 Replies

i never use animate on
but sometimes i use animate off

when i need to set a key i always use addnewkey

1 Reply
(@miauu)
Joined: 11 months ago

Posts: 0

addNewKey is a solution, but whay the described problem exist?

Looks like a bug. If you change Auto Key Default Frame to 1 and change your code to 1, it fails to create the key at frame 1.

Seems to work if you put frame 30 in first though.

1 Reply
(@miauu)
Joined: 11 months ago

Posts: 0

This works. Thank you.