I have an object I want to rotate around another object. I have seen it where a dog runs around a tree and the tree layer is below the dog when the dog runs in front of it then shifts to being above the dog when the dog turns and runs behind it. I would like to do the same thing, but cannot figure out how.
-thankyou
how do I move layers within the animation?
Moderators: Víctor Paredes, Belgarath, slowtiger
-
- Posts: 38
- Joined: Sat Aug 16, 2014 6:04 am
- funksmaname
- Posts: 3174
- Joined: Tue May 29, 2007 11:31 am
- Location: New Zealand
Re: how do I move layers within the animation?
if you put two layers into a group (or bone), in the group settings you can enable 'animated sort order'. Once you tick that, any changes you make on frames OTHER than 0 will be keyframed.
You can do a similar thing with animated shape order on a single vector layer, but this may be more complicated for your particular needs.
You can do a similar thing with animated shape order on a single vector layer, but this may be more complicated for your particular needs.
Re: how do I move layers within the animation?
Funksmaname's suggestion is probably going to be easier but if you don't want to animate the layer order for some reason, here's an alternative method: You can place a rectangular mask that's the width of the tree bark in the same group as the dog, and simply slide the mask into place or keyframe its visibility to occlude the dog whenever it needs to pass 'behind' the tree. The mask should, of course, be the bottom most layer in the group and the appropriate mask settings should be set for the mask and each layer above it. (It might be easier to put the dog in its own group above the mask.)
Just mentioning this to show that there is usually more than one way to get the same or similar result, and some methods may be more appropriate for different situations.
G.
Just mentioning this to show that there is usually more than one way to get the same or similar result, and some methods may be more appropriate for different situations.
G.
Last edited by Greenlaw on Mon Nov 23, 2015 4:34 pm, edited 1 time in total.
NEW! Visit our Little Green Dog Channel on YouTube!
D.R. Greenlaw
Artist/Partner - Little Green Dog
Little Green Dog Channel | Greenlaw's Demo Reel Channel
D.R. Greenlaw
Artist/Partner - Little Green Dog
Little Green Dog Channel | Greenlaw's Demo Reel Channel
- funksmaname
- Posts: 3174
- Joined: Tue May 29, 2007 11:31 am
- Location: New Zealand
Re: how do I move layers within the animation?
a 3rd way would be to make a reference layer of the tree above the dog layer and have it hidden, then animate its visibility.
A plethora of ways to skin a cat.
A plethora of ways to skin a cat.

- hayasidist
- Posts: 3833
- Joined: Wed Feb 16, 2011 8:12 pm
- Location: Kent, England
Re: how do I move layers within the animation?
... or (assuming the camera is not following the dog round the tree) because the dog is running round the tree it will be facing a different way when running in front and behind the tree - have the (e.g.) left facing dog with a transition via forward facing to right facing below the tree and the right-facing dog with a transition via rear-on to left facing in front of the tree and turn the dog layer visibility on / off as needed
-
- Posts: 38
- Joined: Sat Aug 16, 2014 6:04 am
Re: how do I move layers within the animation?
Ok, I think I figured it all out, thanks so much all of you for the responses!