Page 1 of 1

Switch layer interpolation

Posted: Tue Jan 17, 2017 11:44 pm
by Jkoseattle
I am attempting a simple project to test interpolation between switch sub-layers. But the interpolation is not working.

1. Created a vector layer consisting of a shape
2. Duplicated that layer, moved the shape so that it appears different from the first layer
3. Created a Switch layer
4. Add vector layers to switch layer group
5. In layer setting for switch layer, checked "Interpolate sub-layers" setting
6. Added a few keyframes switching between sub-layers
7. Playback (also exported animation to eliminate the possibility of it being a render issue)

EXPECTED:
With "Interpolate sub-layers" enabled, expected to see shape move smoothly from its location in vector layer 1 to vector layer 2

ACTUAL:
Shape jumps as if "Interpolate sub-layers" was not checked.

What giveth??

Re: Switch layer interpolation

Posted: Tue Jan 17, 2017 11:46 pm
by synthsin75
Do you have GPU acceleration enabled?

Re: Switch layer interpolation

Posted: Tue Jan 17, 2017 11:50 pm
by Jkoseattle
That was fast. I was just about to delete my original post because now it's working, so I need to do more research to figure out why and when it does not work.

To answer your question, yes, GPU acceleration is turned on.

Now I'm trying to get it to not work again.

Re: Switch layer interpolation

Posted: Wed Jan 18, 2017 12:00 am
by Jkoseattle
OK, here's what I'm really trying to do. Makes more sense to explain it outright:

I'm making a mouth with multiple shapes in a switch layer. I want to interpolate between sub-layers. Last night I worked on this using a single layer for all the parts of the mouth (lips, teeth, etc.) which caused me no end of headaches trying to get the z-order right using Select Shape and up-down arrows. For various reasons it was too difficult, so today I decided to make each part of the mouth a separate layer for ease of animating, then put all those layers into a group. I would then duplicate the group, change the layers inside it for the new shape, etc. However, I worried that I could not interpolate between sub-layers if the sub-layers were actually groups rather than individual layers. To test I created a group of vector layers, duplicated that group, and put both the groups into a switch layer. I was able to switch between the groups just as if they were individual sub-layers, but the interpolation didn't work.

So, is it possible to switch between groups in a switch layer AND have interpolation between the groups? Or should I make the whole mouth a single layer and switch that way?

Re: Switch layer interpolation

Posted: Wed Jan 18, 2017 1:42 am
by synthsin75
No, groups do not interpolate. You'll have to make a referenced switch for each element. There's an example here:
viewtopic.php?p=164763#p164763