VIDEO COPILOT BLOG
News, Updates, Projects Files & Tips


TWITTER FEED

Reverse Scale Expression

In the Demon Face Warp Tutorial we learned to reverse track by adding expressions. One expression reversed the rotation by multiplying it by -1.

Now I had a question about reverse scaling… I didn’t know, until now:

Basically you create a variable inside the final comp where you apply the reverse rotation expression but instead we alt click on the scale and write
m=100/comp(”yourPreComp”).layer(”originalLayer”.transform.scale[0];
value*m

So if m=400%, then 100/400=.25, and .25*100% is 25%. And 25% of the now 400 percent image is now back to the original size.
To create the layer variable, you can pickwhip the scale of the precomposed layer as shown in the tutorial. Then add [0] so that you only use one of the scale values for the width.

Try it out and hopefully you can use it in the future.

EDIT for Clarification: When you motion stabilizing something with 2 points you can calculate the rotation and scale from the Motion Tracking Menu, this scales up or down as needed to keep the 2 points the exact distance appart. Thanks for bringing this up Kyle, I’m tired too.

112 RESPONSES TO “Reverse Scale Expression”

by Daniel gomez

Edited by Administrator for Spam.

Edited by Administrator for Spam.

I’m not sure I get what you are saying. What would you reverse scaling for? LIke if the person was movie towards the camera or we zoomed into them?

wow. too many spelling mistakes.

CORRECTIONS: what would you use reverse scaling for? Life if the person was moving towards the camera or we zoomed into their face?

sorry, its late.

Yeah, sorry I should have mentioned that Kyle. When you motion track someone you can also motion track the scale. So if they come towards you or away from you, the tracking would shrink or grow you as needed. Also if the camera zooms in or out.

So with this expression you can reverse it but get the benifits demonstrated in the video.

Great Comment.

Sorry guys, that admin can be harsh ;)

Aww poor Andrew and his speeling… what did I spell something wrong?

by Dustin James

I like the thought of getting into the more advanced expressions and the explaination of it…

Are there books that you read that cover this or just peer to peer?

by Flim by Tim Productions.

weeeeeeeeeeeeeeeee CHECK OUT MY VIDS AT http://youtube.com/profile_videos?user=eddberkel I LOVE YOU ANDREW KRAMER

That’s a good idea for a more stunning effect(or to cover up a poorly planned one) Thanks. KRAMER FANS…

no fair, what about “Flim by Tim Productions”? Mine was at least copilot related.

DAM!!! I haven’t used math in a while… it’s all coming back though lol

Hey Andrew!, thats truly a good idea, will try it. u always rock as usual. hehe :D thankyou.

Have a good sleep!!!! :D I know u r tired coz of ur hardwork.

thnx 4 everything

Warm Regards
Sandy

Yeah dude, take a break and put your feet up. Dont worry, we will still be here when you get back…

Nice effect though, i remember running into this problem when i tested out the demon face cause my original shot featured the subject moving their face forward as they pulled their scary expression. I ended up re-shooting and getting them to stay level. This technique should make for a much more generalizable effect over a diverse range of shots.

Hedley

Andrew,
Thanks bro. must be an exciting time in your life.
Those of us who are atttracted to your site are obviously visually oriented.
Some here may get the explanation from the text entry, but honestly, I don’t get it. If you wuold be so kind as to show it, that would be a great help.
Blessings,
c

Hi Andrew,
I love your tutorials, I’ve learn a lot thanks.

I’m trying to apply the reverse scale expression but I can’t figure out how to use it properly. It would be great if you could show how you do it.

Thanks !

Thanks dude. Sometimes I feel like all I really need is a tip or some advice as to how to do something, not a tutorial but just a little explanation (as you so nicely provided). Clearly explained advice is faster and easier than tutorials and usually just as effective. This was good, thanks, I will try it!

PS: you should drop tips like that more often :)

Would this be useful to make someone have like a terminator eye?

by Mark/finalrenderfilms

Very very interesting. I know what you were saying, I’m just not clear on how you would go about doing that. Maybe in your next tutorial, you can give a wii little demonstration at the end? Thanks again for the very useful info, BTW.

by ello beastie

wats happening with that gravity tutorial? i thought it was gona be up on tuesday or something ??!!

edted by administrator for spam what is that ? did we write something bad .whats the deal.

sandy andrew is married .but i am not .haaaaaa too much love in here

Am not sure if he used “Demon tutorial” but if so than its the best demon so far :D check that out ;)
http://youtube.com/watch?v=KCPd5V5Twyc

I’ll put this tip into the next tutorial…

Clancy “first to post” comments will be removed. I’m just trying to keep the blog neat.

I am confused…I need to see it in a tutorial.

It’s neat and lovely ,you know we love to be here it’s our home that we escape to, to find peace after a hard day work . we come home for something and its videocopilot to take us on a journey full of adventure and mystery . I talked to people in the streets and work about videocopilot and after a while they will say thank you for the web site .then i know i did something good for some one . this is my essay about videocopilot.net. good morning and good luck.

I still don’t get it :/
I think I have to see the benefits in action before knowing what that expression exactly does.
Thanks for putting it in the next turtorial.

Does anyone else understand exactly how to do this? I thought I did but I keep getting an error when I use the expression so clearly I am doing something wrong.

Hmm, Jason if you need help PM me on my youtube channel, maybe we can talk on MSN if you need help.

-Scott

Hey can you make an update on the tutorial i got confussed?

Andrew, can you give us a little update on the next tutorial? :)

I agree that “First comment”-comments are lame and should be removed.

yeah, I agree it’s been a while since the last tutorial..

and I will be gone for a month….away from my mac…and
away from any new things Andrew brings to Video CoPilot.
I guess I have to just wait until I come back
from vacation and see what’s up with the site.
Hopefully there are many new tutorials by then.

I finally understood how to use the reverse scale expression. It’s simple and it works very well.

Thanks Andrew!

hum….. this is a little trick but im sure it will come in handy one day. thanks andrew. oh, and ET, i feel you man, gone from the mac for a month…. i just got back and i missed mine too.

by Justin Productions

« Clancy “first to post” comments will be removed. I’m just trying to keep the blog neat. »

To-ta-lly agree with you…damn. I mean, who cares if you’re first? It makes videocopilot so… unprofessional and childish.

I suggest you blacklist “first post” with this excellent plugin for Wordpress: http://tantannoodles.com/toolkit/spam-filter/ . Check it out.

Cheers.

Yeah indeed, I agree with Justin.

Please keep this blog clean and professional.

i ment to get AE pro but accidentely got AE standerd.. so no motion tracking, it sucks!

http://www.youtube.com/watch?v=e6FuMEVFN3s

justin and m20 what are you talking about . i wasnt the first and i was’nt complaning and the blog is clean .please dont get too exited .and andrew already explained so please dont talk like iam the bad guy here .jeez.

Hey Andrew! Sorry this is a tad off topic, but I just found your site over the last weekend and have watched almost every tutorial in less than a week. I’ve got to say you do an excellent job and I really enjoy watching your tutorials and love your stand up comedian style you through into it. You really make learning fun! I’m planning on purchasing the Designer SFX and Riot Gear bundle in the near future and was just wondering if it would be possible for some tutorials (or even links to) on creating those awesome whooshing sounds.
Anyways, thanks for the great site! Keep up the good work!

Your fine Clancy, they are just speaking generally. We’re all on notice now.

Best

Hey Andrew!

Ive been wacthing your free tutorial and its really helps me out!
Im from brazil and im actualy “starting” at After Efects, i make a heavy metal show here in brazil where i am cameramen and also do the video editing… and now im starting to make the graphic stuff, such as bases for GC and all the videos, etc.
What i would like to know if is there any possible to download the free tutorials, cause everytime im doing something i have to “buffer” all teh tutorial to remember certain part of the tutorial, and that its quite sux, you know…
And im plaining to purchase some of your dvd’s, but since the diference of my local money for dolar its quite big, i have to wait a bit hehe…and do you guys delivery the dvd in brazil or other location like this..didnt tought about it.
Well, anyway good job and check out the website, i may say it isn’t look that good and its not that professional, but it was alot worse before, and we are getting there i think.
See you.
PS: sorry for the english, my “net-english” its not that good yet :º

Thanx for the answer Andrew! I actually tried to find a way to do it myself for a few days (hum… maybe a few hours) and i realised I was way off, wich is often the case when i try to come up with expressions. I’ll try this and tell you how it went.

Thanks again

Hello, andrew, pleass… IN SPANISH
THANKS

IN SPANISH IN SPANISH IN SPANISH IN SPANISH IN SPANISH IN SPANISH
IN SPANISH IN SPANISH IN SPANISH IN SPANISH

by Joey Winchester

Learn english

Thanks Andrew, even though you are an Adobe after effect specialist, i have been able to corporate some of the ides to create this flash site..Please guys rate it and tell me hat do you think … liger4ever@yahoo.com
http://www.thedigitalsurgeon.com

I still have trouble understanding all these expressions and calculations and also when to use them time is on my side i guess

Hey Andrew, ever thought about putting a “subscribe to feed” button somewhere on the blog? I find myself checking back every 10 minutes for new content. It might be a little more convienant to have a button that we could click that would send out a mass email to all your subscribers. Or something of the sort. Just some thoughts. All the best!

Hi, Does anyone know how to capture 4 channels of audio in Sony Vegas? I have recorded video on the XL2 and I want to combine the on camera mic with an XLR mic

He HAS such a thing. It’s called an RSS feed.

http://www.videocopilot.net/siteblog/?feed=rss2

You just need a plugin rss feeder. Firefox has one, don’t know about other browsers.

https://addons.mozilla.org/en-US/firefox/addon/361

by Mark/finalrender

Yes, I use the feed. anyways, carter, nice site. A little small though…

Also, Andrew, I’m messing with this effects, but i can’t it. Hmm..any hints as to what I’m doing wrong?

It would be awesome if you put an example of what you can use reverse scaling for… Just a though.

I agree with Bones :) A “subscribe to feed” button would be great!

Andrew, hahaha I actually found use for this tracking motion and scale tip using null objects in one of my corporate training video (that wont die and keeps coming back to haunt me because of my incompetent client) project im working on. THANKS!

Hey Boss I have a question . iam asking you cause i looked on line for an answer but no luck .I got panasonic 16:9 conversion lens for my xl2 but it won’t fit to the 20x lens do i need an adapter or a ring .please advise on what should i do or where to get it and the name for it .I know its off topic and i hope its not a spam to you .but you my only hope to know what to do .Best regards.

Sony has a great new product, Cinescore, I thought you all might be interested in. It generates royalty free music to the length of your video that is customizable in different styles. They have different themes etc. to match what style your video is. Check it out here:

http://www.sonycreativesoftware.com/products/showproduct.asp?pid=1013

I think it’s a great time saver and good way to bypass illegal use of music.

give us some more tuts mister!!!

@ clancy
What is that 16:9 conversion lense supposed to do for the XL2?

Sorry to sound like a jerk Clancy… But join an XL2 forum… Your questions have nothing to do with the topic at hand… Also Kris S. it’ll convert 16:9 to 2:35:1.

by joseph profit

hey bros and bras. wanted to say hello to all. Andrew you rock dude. check out some of my copiloted influenced work on my reel: (new and old stuff)

http://ybarraproductions.com/demoreel2007.html

let me know what you guys think about it. straight from texas! thats right i said it and what. hehe

ps. i think im going to update it cus ive recently created a deamon face using my gf. hehe. and i found houston dowtown footage and decided to bombard it with a meteor shower. hehe. its really difficult so far because it wasnt a planned shooting or “Shot for post” so-to-speak. anyway njoy. thanks again Andrew Dude, you rock and copilot has really helped me in my career as a motion graphics artist. thanks.

scott . you are a jerk ,and i was’t asking you i had it with guys like you .sorry andrew i dont mean disrespect but if i asked uoi why people geting mad about it .

lol Clancy I was not calling you a jerk! I was saying Sorry if I sound like a jerk :P

ar u the one with kutcup commercial?

And by the way i looked every where for an answer ,whats wrong if i asked some one more experianced about somthing related to film whats the big deal we supose to help each others ,Iam not asking what kind of underwear your have on ,so forgive me for getting upset.

Cause Andrew said keep it relevant to the topic at hand Clancy and yes I’m the ketchup guy, lol. Also dude just join dvinfo.net forum and ask bout ur xl2 there, thats what I did man! :)

@Judd:

There is also a plug-in for Premiere Pro from Smartsound that is pretty cool too. Its what I use in my church videos.

Thx Scott.
Thats pretty cool! – I will sacrifice 150 wild boars in your honor.

I guess you put that 16:9 conversion piece on and also switch the camera to 16:9?

next tut next tut next tut !!!!

Hi Guys

Sorry to post this as its off topic but need answer fast. When importing a QT movie with audio why can i noti hear the audio in the time line and also when i bounce it out back to a QT movie. I can see the Wave form

Thanx
JOhn

This website is my crack.

personally dont find expressions very interesting – but i`m sure others do.

What ketchup commercials??? Those are mine!!! Unless someone else is doing them on here. Check them out here:

http://youtube.com/watch?v=nfAx1_8tFNw

http://youtube.com/watch?v=2xgptTr4Wos

No need for the sacrifices Kris, but thanks anyways. :P Thank you is thanks enough! :)

-Scotty

Hey whats up ketchup . what topic would you like to talk about beside frenchfry’s. :0)

Hey, Andrew! Do you know indymogul.com? They show how to create special effects (not visual effects) for cheap. They have that Viewer Voicemail, where they make a question and viewers are answering it on a voicemail. So, last week they asked: “What’s your favorite online filmmaking resource?” And it seems to be … videocopilot.net
You can check it out here: http://www.indymogul.com/episode/bfx_20070806
It’s at the end (~4th minute). Congratulation on that and keep up the great work!

hey andrew we have nothing here to talk about so iam thinking to do a spagitti fight :) .hope everything alright and iam not thinking too hard .best luck .

@ clancy30

Can’t you read? People should stop posting off-topic msgs, because it overloads the servers…

Leave Andrew be for a while, he has his own stuff going on at the moment. Go on a vacation, read a book.

Peace and much love, guys.

@ otherwise i’m sorry you having a problem with the servers we all ask andrew about things i’am not the only one ,but if you and andrew feels that way thats fine .I’am not posting anymore that was very rude from you ,and iam on a vacation .

Anyways……

I had my actor for my demonface test move his face towards he camera, and I couldn’t think of how to make it look correct. I didn’t think to reverse the scaling. I will have to go out now and tr it again. I wish I had some time to go and shoot a movie just for fun, maybe I will make my own zombie short, and all of my zombies will have demonfaces or something. Sounds like an excuse for some gratuitous blood, and nonsensical violence.

Joseph Profit, that’s a very nice showreel.

I’m curious how you made the scene with all the buildings in 3D?

I cheated & did my “face warp” in front of a green screen, skipped the reverse tracking/expression thing in the tutorial, I found it easier

Funny how the original face warp blog got 396 comments almost instantly, but here we’re down to 78 comments after 4 days!

Maybe the overriding point of this blog is: This s**t ain’t easy, you need to apply yourselves people, after all he’s only your copilot!

Dunno just my 2 pence worth.

@Matt

Is the music any good? Or does it just sound like MIDI and synth? Cinescore blew my mind away but maybe the plug-in you’re talking about is better?

@ Judd:

the plug in for Premiere is free, but the songs cost. You get 10 free tracks with it, and they sound like actual recordings of music. I use one I bought that was called Leap of Faith, which is their version of Van Halen’s “Jump”. I used it in a youth activities promo and all of us 20 somethings were singing along, and it was pretty cool.

yeah, probably

Hi ,
I’v got other question –
Have You ever thinking about creating some kind of effect like in ” Ghost Rider” ? I mean burning human skull ?

by Morten Enoksen

Hey “ucantstop”..

I have not seen ghost rider but ive seen the trailers. So I would guess you would need a 3D app to make this effect(No doubt!).

ucantstop that’d be 3D and it’d be very hard to recreate fire that’d look realistic…

Oh yeah, Check out our latest film, “LOOK BACK”
and tell us what YOU think!

http://www.youtube.com/watch?v=PPcMtDG0dXo

Thanks!

I know it’s 3D ,
but time ago , Andrew Kramer mention something about creating 3D tutorials as well .. or .. maybe i misheard something.

I love your tutorials.

The demon face was a bit complicated but well worth the effort. Thanks…
Looking forward to the next one.

Thanks!

Louis

still alive?

G’day Andrew,

Thanks for annother excellent tutorial. and thanks to Kyle for asking about motion tracking on the ‘z’ axis. I’d be very interested in seeing a tutorial about motion tracking a subjuct where zoom or distance to and from the camera is a consideration… My question was actually to do with the programming language that you actually type in to achieve the reverse motion tracking. Can most of the effects and plugins applied be viewed in this way? as in programming lingo that can be edited?

Oh, it´s so quiet here….
Hello…hello(echo)…hello(echo)
Huhu, Andrew…are you still under us?

Maybe they had their baby already.

Hey Andrew,

I’m guesing you had a baby already (ok your wife had a baby…. very funny perverts) anyhow congrats, hope all is well with you, your wife as well as the latest addition to your family.

Sam Gilbert

PS – Boy? Girl? you have to let us know

Hey guys I don’t see a tut today so why not check out my day to night test I did yesterday! Let me know what you think, but be warned youtube compressed it really badly. Anyways, you’ll get the idea.

http://www.youtube.com/watch?v=bzUDyxVbEN4

comments welcome

Nothing yet, but it is going to happen any day. I have been scrambling to get the final touches on the site update before I get tied up. I have a couple of tutorials but I haven’t had time to make the graphics and stuff… Trust me your patience will pay off.

Puh, the master´s still alive.

hey judd,
horrible music, great work.

@ superville, lol thank you! I don’t like the song either but it’s the only one I have of that genre of music right now it’s funny you said that. Have to work with what I have ;-)

by Morten Enoksen

Hi there, 1st, thanks Andrew for all these great tuts, I was basically editing a footage using the “reverse stuff” and found out I had to track the scale too…
How to reverse the expression? hopefully you were there… but…. I sorry, I have tried it either way, AE won’t let me use the expression:
m=100/comp(”yourPreComp”).layer(”originalLayer”.transform.scale[0];
value*m

so I may look dumb, but is that just what we’re supposed to write (replacing the layer name of course?)
otherwise you just say to pickwip the scale expression in the precomp layer and add 0… still nothing changes….
Help I going crasy….

Wow. It’s so funny, because I had to use reverse stabilization at work to cover something up on a piece of video. I had to use all three (position, rotation, and scale) and it took me a while, but I figured out an expression for the scale so it would reverse as well. But mine was long and complicated. Not as simple as this one you put up. I should just keep your site embedded as my background and I can just look over every couple of minutes to see what wonderful new toy you’ve given us.

Trevor

Hi everyone…

I’m new to this site and new to After Effects — but I always find the best way to learn a new program is to dive in at the deep end and pick up the basics along the way…

So I managed to perform a successful facial warp on some footage that didn’t require scale adjustment. Having done so, I was then keen to try it out again on some footage that would. I managed to get the expression at the top of this page to work (see below for a couple of forehead-slappingly obvious tips that could explain where Yann and others might have gone wrong), but I’ve now run into another problem…

The subject in my footage moves towards camera all the way from a full-body shot, right into a medium close-up, where she remains for the duration (and the majority) of the clip. So, when I track and stabilize the scale (along with the other properties) and preview the result, I have my image swiftly shrink into a tiny little window–bobbing about in the blackness–as my subject approaches camera. So then when we precomp this and reverse the scale, we’re having to zoom in on the image somewhere around 750% to compensate! Obviously, the result is a very lo-res, pixelated–completely unusable–image, whereas on the original footage we had a nice, high-res medium close-up.

Can anyone tell me where I might be going wrong? Is there anything I can adjust within the comp settings? Are there any hidden properties one can adjust when creating the precomp in the first place that might fix this? Is it possible to track the scale separately from the position and rotation, and apply it to an adjustment layer or something, and still have all the amazing flexibilty that this overall technique offers?

Any help would be greatly appreciated…

And as for those those tips that could explain why some people might be having trouble getting the expression to work…

1. It seems that Andrew accidentally forgot to close the parenthesis after “original layer”, so if you’re copying and pasting the text from this page, make sure to put that in.

2. When typing the name of your original layer, don’t forget to include its extension as well.

Hope this helps… Cheers…

Danny

Hey all

this might be abit off topic, but does anyone here have a link for a free navigation bar / top menu like the on this site? i need one with black and blue like his http://evans-digital.com/services.html

something easy to use :S ive searched for a long time now, and i dont really know what to look for, cuz im not really into creating websites, but working on it.

any help is appreciated !

ty

An update on my travails w/r/t reduced resolution as a result of reverse scaling…

I thought I finally had it cracked when I discovered that I could restore my original resolution by selecting ‘Collapse Transformations’ on the precomp’s Layer Switches. However… whilst this seems to retain the tracking data for, I suppose, MOST purposes, it just doesn’t seem to work in conjunction with the Liquifier effect.

I can happily add in sunglasses, tinfoil hats — stick a parrot onto my subject’s shoulder, and give her an eyepatch and a wooden leg — and as long as those layers are parented to the precomp they will follow the tracking data perfectly! But as soon as I try to apply the Liquifier with the ‘Transformations Collapsed’ switch selected (thus restoring my original resolution), this effect will not follow the tracking data at all…

I have also tried selecting ‘Preserve resolution when nested’ from the Advanced Compositions Settings window — no luck there either…

Any suggestions? Andrew? Anyone?

Could it perhaps be that the (reverse scale) expression needs to be modified so that it uses as its source the entire original COMP (and all of its info and properties), as opposed to just the one layer? If this sounds stupid, bear in mind that when typing expressions, I feel as though I’m reading aloud from a foreign-language phrasebook, rather than speaking a language that I actually understand (”My hovercraft is full of eels…”)

I hope I haven’t scared everyone away from this thread… Surely I’m not the ONLY person who’s been staring at their computers all weekend!

Cheers…

Danny

Trevor…

What exactly WAS your long-winded expression? Could it possibly rescue me?

DP

by Gianluca Salerno

Thanks Andrew!!!
I did the question,remember?
U R great!
Thank you very much for listening!

by Gianluca Salerno

Reverse scale tested…Amazing!!!
Thank you Andrew!
If u have the time, take a look to my videos :
http://it.youtube.com/profile?user=79Luke79
I hope u’ll give me a feedback.
Bye my friend!!!

Ah, thank you for answering my question:)

I am little confused about the scale expression. Is it even needed if you check the scale box as well as the position and rotation boxes and reverse scale it, or does it have to be checked along with the expression? Do you have to pickwhip it first and then add the rest of the expression?

by VTrash Productions

Ok, If anyone out there has any explaination to how to do this please explain. Just post the code here and tell us what to do.

ANYTHING to reverse the scale.

Much appreciatied!

Has someone found out since Xmas 2007? :)

I’m still stuck on that expression (yeah I’m a bit late, sorry). My brain is actually exacuating steam through my ears… I fear the overrun shortly.

Please can someone help me by explaining how to reverse a scale tracking? That would be amazing.

Thank you
J

Post a Comment!

Before Posting
We're trying to encourage more thoughtful commenting.  Please take a moment to write a meaningful response to this post.

Also remember to read the rules on posting first.

Leave a Comment