Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Parenting expression needed

Community Beginner ,
Mar 16, 2011 Mar 16, 2011

I want to create a handmade anamorphic lens flare and I wanted to have a basic control to animate its position.

What Im after is an expression that will allow me to parent the lensflare 'artwork' to a null/light source but will essentially make the flare move in the opposite direction from the null. Basically it would act like the positioning function of the standard AFX lens flare.

Can anyone suggest an expression that would get this working?

Thanks

TOPICS
Expressions
2.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 16, 2011 Mar 16, 2011

http://aestuff.myleniumstuff.de/?p=7

Mylenium

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 16, 2011 Mar 16, 2011

Thanks for that Mylenium

Ive taken a look at the projects and the link to the tute on Creative Cow.

You have done a stunning job but I think its probably a bit too involved for me to get my head around to work out how you have implemented the math!

What would be the relevant basic expression that relates to a basic positioning set up?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 17, 2011 Mar 17, 2011

This shold mirror a layer across the center of the comp from a null or light named "flare":

mult = -1;
flare = thisComp.layer("flare");
compCenter = [thisComp.width,thisComp.height]/2;
compCenter + mult*(flare.toComp([0,0,0]) - compCenter);

Adjust the value of mult to adjust the distance.

Dan

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 19, 2011 Mar 19, 2011
LATEST

Thanks so much for replying Dan

That too works very well . With help I have had from you and Mylenium I think I will be able to get some cool results now

Thanks again

Matt

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines