PDA

View Full Version : width, height enumeration


NoX1911
20th May 2006, 02:31
Clip1=DirectShowSource("08-daemon.avi").pointresize(width*2, height*2)
#Clip2=DirectShowSource("output1.avi").converttorgb32
#Clip3=DirectShowSource("output1-alpha.avi")
#Layer(Clip1, Clip2, op="add", level=128)

error: I don't know what "width" means.

How is it meant to be done to get Clip1 doublesized?

foxyshadis
20th May 2006, 02:50
Clip1=DirectShowSource("08-daemon.avi")
Clip1=Clip1.pointresize(clip1.width*2, clip1.height*2)

Since neither the implicit last nor clip1 are initialized in the first line, you can't resize using their properties until the second. (Last is what you get when you don't assign to a variable, and when you use a property or filter without specifying a clip.)

NoX1911
20th May 2006, 03:08
Thank you. Works great now.