how to change the final material from the bezier masking to the camera shot? Or how else to make the camera (pan / crop) follow the target on the recording
I'm not asking about this aspect. How to zoom and track a spacecraft and make a separate camera shot from it. This is my problem! I will do the object tracking and zoom, but I can not do this with a separate shot
It's there. Select all the text from the "code" segment. (It's that the gray box).
Copy to clipboard, then paste into your text editor (notepad, or preferably notepad++)
Save it as a .cs. Then copy it to your scripts folder.
Voila.
Some remark:
This 2 lines:
float X = (float) (1920 * tmpValue.X + InitialDiffX);
float Y = (float) (1080 * (1- tmpValue.Y) + InitialDiffY);
convert the motiontrack location coordinates to Pan/crop coordinates. The resolution 1920*1080 is hardcoded, as you see, so if you work with different res. media, change it accordingly. This is my lazyness, I didn't finish the script...
error :( video resolution is fullhd what is wrong?
F: \ - VEGAS - \ - To VEGAS CONSTANT- \ Scripts \ mttopancrop.cs (213): An invalid "{" token exists in the declaration of a class, structure or interface member. F: \ - VEGAS - \ - To VEGAS CONSTANT- \ Scripts \ mttopancrop.cs (214): The method must have the return type. F: \ - VEGAS - \ - To VEGAS CONSTANT- \ Scripts \ mttopancrop.cs (215): An invalid token "(" exists in the declaration of a class, structure or interface member. F: \ - VEGAS - \ - To VEGAS CONSTANT- \ Scripts \ mttopancrop.cs (216): An invalid token "(" is present in the declaration of a class, structure or interface member. F: \ - VEGAS - \ - To VEGAS CONSTANT- \ Scripts \ mttopancrop.cs (216): An invalid token "=>" appears in the declaration of a class, structure or interface member. F: \ - VEGAS - \ - To VEGAS CONSTANT- \ Scripts \ mttopancrop.cs (219): An invalid token "(" is present in the declaration of a class, structure or interface member. F: \ - VEGAS - \ - To VEGAS CONSTANT- \ Scripts \ mttopancrop.cs (219): An invalid token ")" exists in the class, structure or interface declaration. " F: \ - VEGAS - \ - To VEGAS CONSTANT- \ Scripts \ mttopancrop.cs (220): Member names can not be directly in the namespace, such as fields or methods. F: \ - VEGAS - \ - To VEGAS CONSTANT- \ Scripts \ mttopancrop.cs (222): Expected type