Page 1 of 1

Function to sync channel to original?

Posted: Mon Mar 02, 2020 10:57 pm
by Lukas
Is there a function to sync a channel back to its original state? Or is there some other way?
I need to wipe all keys of a certain channel, but it keeps breaking the reference (the referenced channel itself also has 0 keys on the timeline)
Right now when I call:

Code: Select all

channel:Clear()
or:

Code: Select all

channel:ClearAfter(0)
it keeps breaking the reference, which makes the entire channel show up on the timeline even though there are 0 keys.

Re: Function to sync channel to original?

Posted: Tue Mar 03, 2020 12:07 am
by synthsin75
Afraid not. The only way to resync a channel is to right-click it's channel icon and manually select resync.

Re: Function to sync channel to original?

Posted: Tue Mar 03, 2020 8:44 am
by Lukas
Thanks Wes! :)

That's too bad, this code runs about every single mouse-click while animating and I really don't want those extra channel when I'm not using them... :(

I'll try to find a workaround and am gonna try and approach this entire thing differently...