## Star Wars BB-8 Rotation

Scripting for After Effects

### Star Wars BB-8 Rotation

Hey all does anyone know if its possible to do this type of rigging with expression in after effects using the new BB-8 model from Element3D.

http://blender.stackexchange.com/questions/43373/how-do-i-rig-a-bb-8-robot
Joel BB

Posts: 22
Joined: 06/7/2012, 9:13 am

### Re: Star Wars BB-8 Rotation

Yes, it's possible, but would require an awful lot of custom vector math since AE doesn't have built-in constraints to measure distances and determine 3D rotations easily.

Mylenium
[Pour Mylène, ange sur terre]
----------------------------------------
www.myleniumblog.com
Mylenium

Posts: 3263
Joined: 02/1/2009, 11:45 am
Location: Germany
System Specs: Have, I do!

### Re: Star Wars BB-8 Rotation

d=175;
pi=Math.PI;
circ=d*pi;
rot=360/circ;
movex=effect("Element")("2. Position Z");
rot*movex

in the X and Z rotation fields, but it only works if you move it in a straight line; otherwise the rotation is off.

You need to determine the distance traveled and take that into account somehow. Probably some crazy-long math involved or something.
Unless anyone knows an easier way.
A105

Posts: 8
Joined: 03/15/2016, 4:29 pm
System Specs: Build: Element x64 2.2.2 (2140.develop)

OS: Microsoft Windows 7 Ultimate 64-bit 6.1.7601

CPU: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
RAM: 32698MB

GPU Vendor: NVIDIA Corporation
GPU: GeForce GTX 650 Ti/PCIe/SSE2
GPU Driver: 10.18.13.6200
GPU RAM: 2048MB
GPU Code: 0

CL0: GeForce GTX 650 Ti (100.0%) (GL Interop)

### Re: Star Wars BB-8 Rotation

Yea thats about as Far as I got also..This guy goes into vectors and some other stuff that might help..I don't want to give up on this but man I just don't know much about this type of expressions. Hope someone can help.

https://vimeo.com/felttips

I did find an expression but its on my other machine I'll post it later. Gave me this out come...I believe its working on both x and z I did this late and can't remember .

Joel BB

Posts: 22
Joined: 06/7/2012, 9:13 am

### Re: Star Wars BB-8 Rotation

I'd be interested in seeing the expression too.
plae57

Posts: 574
Joined: 08/4/2014, 4:12 am