Page 1 of 1
LK_ToggleKeysFilter - Filter layer panel by animated layers
Posted: Fri Aug 20, 2021 5:23 am
by Lukas
This tool filters the layer panel by layers that have keys, so you can easily see what layers have been animated.
Click the tool again, to see all layers again.
I'd suggest disabling
Moho > Preferences > Layers/Objects > 'Search filter always shows parent layers of matching items' for best results.
Download link:
Re: LK_ToggleKeysFilter - Filter layer panel by animated layers
Posted: Fri Aug 20, 2021 6:10 am
by Daxel
Great idea! Thanks for sharing
Re: LK_ToggleKeysFilter - Filter layer panel by animated layers
Posted: Fri Aug 20, 2021 6:37 am
by Lukas
I re-uploaded the .zip linked in the original post and included another button that does a similar thing (you need the new utility file too):
It doesn't do any filtering with the layer panel, but it just hides all non-animated layers in the viewport. When you click it again it shows ALL layers. So you probably want to use
"hide in editing view" and
"don't render this layer" when using this button.
At first I was thinking of putting these both in a single button, but you don't always want to do both at the same time.
Re: LK_ToggleKeysFilter - Filter layer panel by animated layers
Posted: Fri Aug 20, 2021 9:55 am
by synthsin75
Re: LK_ToggleKeysFilter - Filter layer panel by animated layers
Posted: Sun Aug 22, 2021 1:09 am
by Lukas
Ah of course you did
I didn't know of MohoLayer:ClearLayerKeyCount(), that's interesting. I did it differently because I got weird results without the clearlayerkeycount function and now I know why! Might adopt it if I ever need to update it.
My script also sets and clears the filter for the layer panel so you don't have to filter manually and the tag disappears when you're not filtering.
Re: LK_ToggleKeysFilter - Filter layer panel by animated layers
Posted: Sun Aug 22, 2021 1:33 am
by synthsin75
Lukas wrote: ↑Sun Aug 22, 2021 1:09 am
Ah of course you did
Great minds think alike.
I didn't know of MohoLayer:ClearLayerKeyCount(), that's interesting. I did it differently because I got weird results without the clearlayerkeycount function and now I know why! Might adopt it if I ever need to update it.
I had forgotten I used that.
My script also sets and clears the filter for the layer panel so you don't have to filter manually and the tag disappears when you're not filtering.
Yeah, yours sounds like it automates more of the process.
Re: LK_ToggleKeysFilter - Filter layer panel by animated layers
Posted: Sun Aug 22, 2021 4:26 pm
by Daxel
Thank you, both are very good solutions. And a combination of both would probably be even better: to have a handy automatic button like Lukas did but to be based on tags so you can go back to normal without having to show all layers. But I don't know if that's possible.
Re: LK_ToggleKeysFilter - Filter layer panel by animated layers
Posted: Mon Aug 23, 2021 12:30 am
by Lukas
Daxel wrote: ↑Sun Aug 22, 2021 4:26 pm
Thank you, both are very good solutions. And a combination of both would probably be even better: to have a handy automatic button like Lukas did but to be based on tags so you can go back to normal without having to show all layers. But I don't know if that's possible.
Yeah that's possible. I'm using the buttons as they are now for a while though. They are suited for my projects. But I'll keep it in mind.