sundaysky
6th September 2007, 13:38
Hey guys,
I'm trying to create a script which animates the following function:
function smartCrop (clip clip, int x, int y, int w, int h, int xo, int yo)
{ black=ImageReader("c:\media\pics\black.png",0,100,pixel_type="RGB32").BilinearResize(720,576)
c=Crop(clip,x,y,w,h)
Overlay(black,c,xo,yo)
}
Black.png is completely transparent. I'm using the background becuase i must keep the same frame size, and i don't want to resize the video after cropping (doing crop&resize by using BilinearResize(6) for example). I intend to overlay the result on some other media in the future, so the transparency is important
When I use overlay, the background wouldn't be rendered transparent, but completely opaque. I've tried playing around with Layer, but still couldn't get to the point where only the overlay_clip is visible and the base_clip is invisible/transparent.
Help? Pretty please?
:eek:
I'm trying to create a script which animates the following function:
function smartCrop (clip clip, int x, int y, int w, int h, int xo, int yo)
{ black=ImageReader("c:\media\pics\black.png",0,100,pixel_type="RGB32").BilinearResize(720,576)
c=Crop(clip,x,y,w,h)
Overlay(black,c,xo,yo)
}
Black.png is completely transparent. I'm using the background becuase i must keep the same frame size, and i don't want to resize the video after cropping (doing crop&resize by using BilinearResize(6) for example). I intend to overlay the result on some other media in the future, so the transparency is important
When I use overlay, the background wouldn't be rendered transparent, but completely opaque. I've tried playing around with Layer, but still couldn't get to the point where only the overlay_clip is visible and the base_clip is invisible/transparent.
Help? Pretty please?
:eek: