Log in

View Full Version : Import video, add mask, resize it, and assign new location


lindylex
8th March 2013, 10:33
I’m trying to build this http://mo-de.net/d/comp3.png and I can’t seem to get the order and code correct.

I want to, import a video, overlay it, attach a mask to it and move it.

h_mask=imagesource("C:\projects\Shawn_Hennesy_Project\comps\hmaskwhite.png", end=20, pixel_type = "RGB32").ConvertToRGB32 ()

the_interview=v1

orange_square=imagesource("C:\projects\Shawn_Hennesy_Project\comps\orange_h.png", pixel_type = "RGB32")
title_shawn_henessy=imagesource("C:\projects\Shawn_Hennesy_Project\comps\title.png", end=200, pixel_type = "RGB32")
logo = imagesource("C:\projects\Shawn_Hennesy_Project\comps\firebg.png", end=200, pixel_type = "RGB32").ConvertToRGB32 ().assumefps(v1)
\.overlay (title_shawn_henessy, mode="blend", mask=title_shawn_henessy.ShowAlpha(pixel_type="RGB32"), x=0, y=0)
\.overlay (orange_square, mode="blend", mask=orange_square.ShowAlpha(pixel_type="RGB32"), x=0, y=0)
\.overlay( the_interview,x=447, y=242, mode="blend", mask=h_mask)#.BilinearResize(820,460)

video_audio=the_interview.killvideo()

mainbg = AudioDub(logo, video_audio)

return mainbg

lindylex
8th March 2013, 20:38
[ SOLVED SOLUTION ] Make the make the same size as the imported movie resized.

The mask image dimension is 820 X 464.
h_mask=imagesource("C:\projects\Shawn_Hennesy_Project\comps\hmaskwhite.png", end=20, pixel_type = "RGB32").ConvertToRGB32 ()

When I do this.

the_interview=v1.BilinearResize(820,464)

And


\.overlay( the_interview,x=447, y=242, mode="blend", mask=h_mask)


I get no more conflict with the mask being a different size.