After Effects Expression Needed

This project was awarded to canifu for $210 USD.

Get free quotes for a project like this
Project Budget
$30 - $250 USD
Total Bids
Project Description

This project is for you to write an after effects expression for me that adjusts the scale of an object based on it's rotation.

Here's the problem. I am displaying short videos created in After Effects on a pixel grid, where the pixels are one foot apart left to right (horizontally), and only six inches apart up and down (vertically). So, if I want to display a square box, it has to be twice as tall as it is wide. Say 7 x 14.

Well, if I rotate the square 90 degrees, I now have a problem, because it will be 4 times wider than it is tall.

See the attached drawing for an example. The trees and boxes all are exactly square when shown on my display, yet in After Effects, I have to create them twice as tall as they are wide.

So, I need an expression, that based on rotation, scales the object correctly.

The other issue that I run into is that of sub-pixel interpolation. I need for all object to snap to a pixel. I am currently using this expression to accomplish this

[url removed, login to view]

newX = [url removed, login to view]([url removed, login to view][0])+.5;

newY = [url removed, login to view]([url removed, login to view][1]);

[newX, newY]

So, what every you create needs to work with the concept of snapping to a pixel.

Awarded to:

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online