PDA

View Full Version : need help with zoom


trolltuning
24th April 2004, 13:18
I have started playing with zoom to warp one person in and stand them next to another (by stacking another clip next to it) but I don't know how to stop the motion so the warped-in person stays on screen. How do I keep the dstx value constant after frame 64?

loadplugIn("C:\Program Files\AviSynth 2.5\plugins\zoom.dll")
vid00=AVISource("D:\avis\cindyalone.avs")
vid01=vid00.converttoRGB32
ReduceBy2(vid01)
#ReduceBy2()
zoom(factorx="n<41 ? pow((n+1)/41,0.5) : 1", factory="n<41 ? pow((n+1)/41,0.5) : 1",dstx="n<41 ? width/2 : width/2+5*(n-41)",angle="n<41 ? 18*n : 0")
#(factorx="n<41 ? pow((n+1)/41,0.5) : 1", factory="n<41 ? pow
# ((n+1)/41,0.5) : 1",
##dstx="n<41 ? width/2 : width/2+5*(n-41)"
#Info()
#zoom(angle="n<41 ? 18*n : 0")
#stop motion in frame 65

Mug Funky
26th April 2004, 19:30
loadplugIn("C:\Program Files\AviSynth 2.5\plugins\zoom.dll")
vid00=AVISource("D:\avis\cindyalone.avs")
vid01=vid00.converttoRGB32
ReduceBy2(vid01)
#ReduceBy2()
zoomed = zoom(factorx="n<41 ? pow((n+1)/41,0.5) : 1", factory="n<41 ?
\pow((n+1)/41,0.5) : 1",dstx="n<41 ? width/2 :
\width/2+5*(n-41)",angle="n<41 ? 18*n : 0").trim(0,65)
#(factorx="n<41 ? pow((n+1)/41,0.5) : 1", factory="n<41 ? pow
# ((n+1)/41,0.5) : 1",
##dstx="n<41 ? width/2 : width/2+5*(n-41)"
#Info()
#zoom(angle="n<41 ? 18*n : 0")
#stop motion in frame 65

zoomed ++ vid01.trim(65,0)



that should do it. unfortunately i've never used the plugin zoom before, but have worked around it :) there's possibly more on the subject in zoom's docs (if it has any)

trolltuning
27th April 2004, 14:49
Thanks but that should jump the position from where it is in frame 64 to the position it happens to be in frame 65. What I really wanted to do was find the position (dstx) in frame 64 and then nest another conditional statement or write a function so that the position stays there after frame 65, but I'm not sure of the syntax.