Dear Folks,
I am using Vegas to combine dual camera videos into a single wide video. Since the cameras are rarely perfectly vertically and horizontally aligned, I must use compositing and create masks for the left and right videos, size and shift the masks, size and shift the videos for each clip. This requires a lot of calculations and manual entering of the height, width, and center values for both mask tracks and both video tracks for each clip. This is very painful when there are many hundreds of clips in a project.
I need to create a script that after selecting a video clip track, will pop up a dialog to enter a single X and Y shift values, then after performing the appropriate calculations, will write the height, width, and center values for both mask tracks and both video tracks.
Any suggestions or sample scripts I can start with to create the dual camera align script?
I can write the code to do the necessary calculations, C# math functions should be the same as C++ math.
Useful samples would show how to:
1) find both mask and both video tracks for a clip, either by selecting a clip track, or by using the timeline cursor
2) create a pop up dialog to enter integer shift values
3) write width, height, and center values to the Pan/Crop events.
Links to appropriate forum topics or sample scripts would be very helpful.
Thanks,
Dennis
I am using Vegas to combine dual camera videos into a single wide video. Since the cameras are rarely perfectly vertically and horizontally aligned, I must use compositing and create masks for the left and right videos, size and shift the masks, size and shift the videos for each clip. This requires a lot of calculations and manual entering of the height, width, and center values for both mask tracks and both video tracks for each clip. This is very painful when there are many hundreds of clips in a project.
I need to create a script that after selecting a video clip track, will pop up a dialog to enter a single X and Y shift values, then after performing the appropriate calculations, will write the height, width, and center values for both mask tracks and both video tracks.
Any suggestions or sample scripts I can start with to create the dual camera align script?
I can write the code to do the necessary calculations, C# math functions should be the same as C++ math.
Useful samples would show how to:
1) find both mask and both video tracks for a clip, either by selecting a clip track, or by using the timeline cursor
2) create a pop up dialog to enter integer shift values
3) write width, height, and center values to the Pan/Crop events.
Links to appropriate forum topics or sample scripts would be very helpful.
Thanks,
Dennis