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

Using a track point to animate position value (but not take the absolute value of the track point)

New Here ,
Feb 12, 2021 Feb 12, 2021

Copy link to clipboard

Copied

Hi,
I wonder can anyone help:

I'm using the clone stamp tool to make a correction to a shot.

I then track the motion in the shot (since the camera is handheld). The best tracking point is over in the corner of the frame, and bears no realtion to the location of the clone stamp.

I now want to animate(transform) the position of the clone stamp so that it matches the movement of the tracker.

If I use the pick-whip to link the clone stamp's position to the 'feature center' of the tracker, then the clonestamp assumes the absolute value of the tracker (which has the effect moving my clone to a position I don't want it to be in). Instead I would like the position of the clone stamp to remain the same, but be offset in the same way as the tracking point is being offset from it's original starting point.

 

Does that make sense?!

 

So if my clone stamp has a position value of x20,y100, and my tracker has a value of x1020,y1100, I want to link them such that if my tracker value changes to x1030,y1100 on the next frame of video, my clone stamp position will be x30,y100.

 

Please help!

 

I'm pulling my hair out here!

 

Thanks a lot!

 

 

 

TOPICS
Expressions , How to

Views

196

Translate

Translate

Report

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

correct answers 1 Correct answer

LEGEND , Feb 12, 2021 Feb 12, 2021

Basic addition and subtraction:

 

mRef=thisComp.layer("XYZ").transform.position;

 

X=mRef[0]+1000;

Y=mRef[1]+340;

 

[X,Y]

 

You may want to read the online help on expression basics.

 

Mylenium

Votes

Translate

Translate
LEGEND ,
Feb 12, 2021 Feb 12, 2021

Copy link to clipboard

Copied

Basic addition and subtraction:

 

mRef=thisComp.layer("XYZ").transform.position;

 

X=mRef[0]+1000;

Y=mRef[1]+340;

 

[X,Y]

 

You may want to read the online help on expression basics.

 

Mylenium

Votes

Translate

Translate

Report

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
New Here ,
Feb 13, 2021 Feb 13, 2021

Copy link to clipboard

Copied

LATEST

Thanks so much for your response. 

Yes, I certainly had the feeling that what I was  trying to do must be pretty basic. 

Will try implement your solution later today when I'm back on my computer. 

Will also defiantly look up the expressions online help, as you suggested - to get the basics. Have the destinct feeling I'm slightly out of my depth at the moment! 

Thanks. 

Votes

Translate

Translate

Report

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