Notifications
Clear all

[Closed] How to check if there is animation on an object?

remove all animation keys
this is where the problem is,
have to be removed manually

1 Reply
(@denist)
Joined: 10 months ago

Posts: 0

it sounds like you already know what nodes need to be cleaned from animation. In this case it’s easier to replace transform controller with a new default instance of PRS controller:

-- let's do it for one selected node
animate off, redraw off, at time 0 
(
	tm = $.transform
	$.transform.controller = createinstance prs
	$.transform = tm
)

don’t specify the time if you want to clear the animation at the current time.

Page 2 / 2