Position Objects in 3D like ToonBoom

Scripting for After Effects

Position Objects in 3D like ToonBoom

Postby mau0968 on 11/5/2015, 7:40 am

Hi:

In ToonBoom there is a tool that automatically compensates the object scale, as we move objects in Z, on a 3D space, so the image/Object looks the same on camera, but have a different Z value.

Is there a way of doing it in After Effects CS6 (with expressions, or some other way?).

I'm animating Book illustrations to a video, and I have all images in illustrator layers. It would be great to be able to move objetcs in Z, so I can play with the camera, depth of field, etc, without having to reposition and reescale all the layers.

Thanks in advance
Mauricio
mau0968
 
Posts: 2
Joined: 11/5/2015, 7:23 am
System Specs: Machine Dell Precision T5500
OS: Windows 7 64bit
CPU Intelç Xeon X5690 @ 3.47GHz
6 Gb Ram

Re: Position Objects in 3D like ToonBoom

Postby hans123 on 11/6/2015, 7:37 am

hans123
 
Posts: 1095
Joined: 12/28/2012, 1:37 am
Location: Paris / France

Re: Position Objects in 3D like ToonBoom

Postby mau0968 on 11/9/2015, 5:21 am

That's it!
But unfortunately I can't afford to buy it.

I'll have to keep doing it by hand.

Thanks anyway.

Mauricio
mau0968
 
Posts: 2
Joined: 11/5/2015, 7:23 am
System Specs: Machine Dell Precision T5500
OS: Windows 7 64bit
CPU Intelç Xeon X5690 @ 3.47GHz
6 Gb Ram

Re: Position Objects in 3D like ToonBoom

Postby plae57 on 11/9/2015, 11:05 am

Here’s an expression for the Scale property of a layer that maintains the relative size of the layer in frame while changing the z position (depth) of a layer or the Zoom value of a camera:

cam = thisComp.activeCamera;
distance = length(sub(position, cam.position));
scale * distance / cam.zoom;

If you select the scale property after adding this script. You can save it as a user preset and simply apply it to any layer you like.

Oh, I can not take credit for it, it is from the Adobe Help files.
plae57
 
Posts: 574
Joined: 08/4/2014, 4:12 am

Re: Position Objects in 3D like ToonBoom

Postby hans123 on 11/10/2015, 2:05 am

Hello,

the Expression (answer from plae57) works.

Or see here:

http://www.motion-graphics-exchange.com ... c0f326ba9f

Hans
hans123
 
Posts: 1095
Joined: 12/28/2012, 1:37 am
Location: Paris / France


Return to After Effects Expressions