After Effects Expression Needed

Avg Bid (USD)
Project Budget (USD)
$30 - $250

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

newX = Math.round(transform.position[0])+.5;
newY = Math.round(transform.position[1]);
[newX, newY]

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

Skills required:
After Effects, Animation, Illustrator, Photoshop
Additional Files: square.png
About the employer:
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.

$ 210
in 4 days
$ 200
in 3 days
$ 257
in 3 days
$ 111
in 1 days
$ 35
in 3 days
$ 226
in 4 days