want to modify,(create?) function... » Python Programming Language » FORUM for IT
FORUM for IT

FORUM for IT



ПоискПоиск   Users   Registration   Entrance
Today: 17.05.2025 - 10:34:20
Pages:  1  

want to modify,(create?) function...

Advertising

.
AuthorMessage

Jontran8

user




Statistics:
Messages: 17
Registration: 10.31.2003

Ever since I saw this script: clip1=AVISource("C:\Movie\menu.avi").converttorgb32 clip2=AVISource("C:\Movie\sDisk2\t7.avi").BilinearResize(160,160).converttorgb32 clip2=clip2.Mask(clip2.BlankClip(color=$FFFFFF)) function CIRCLE(clip clip, clip "LClip", float "angle") { return clip.Layer(LClip, "Add",500 , round((clip.width-LClip.width)/2 + cos(angle)*100), \ round((clip.height-LClip.height)/2 + sin(angle)*100) ) } Animate(0, 840, "CIRCLE", clip1, clip2, 0, clip1, clip2,Pi*8 ) at avisynth.org, and before that somewhere in this forum, I wanted to do something similar, but having the thumbnail clip going from right to left or the other way, straight in line on top of the screen. Actually I want to have more of them, (3 or 4)going one after the other from outside the edge, and dissapearing beyond the other edge. And to repeat the cycle for as long as the main clip lasts. First of all, I have no clue about many of the functions and arguments in the above script, but I was messing around with some of them, and I got to this: clip1=AVISource("C:\Movie\menu.avi").converttorgb32 clip2=AVISource("C:\Movie\sDisk2\t1.avi").BilinearResize(160,160).converttorgb32 clip2=clip2.Mask(clip2.BlankClip(color=$FFFFFF)) function LINE(clip clip, clip "LClip", float "line") { return clip.Layer(LClip, "Add", 500, round((clip.width-LClip.width)/-1+ exp(line)*100), \ round((clip.height-LClip.height)/100 + exp(line)*2) ) } Animate(0, 840, "LINE", clip1, clip2, 0, clip1, clip2, Pi*4) You can laugh if you want, as I said, no clue what it all means, exept I noticed changing the value in red, makes it less transparent, and the one in green, slows it down. Some other values I changed, make it go somewhat in line, but not straight. It starts on top, and as it passes across the screen, goes down a little. Can't seem to be able to go any further than this. Now I know this is the place to ask, because here is where all the experts are. So if anybody have some time to spare on this, please give me a hand. I appreciate any help. Thank you.

---------------------
2005 330ci (sold) 1998 328i (sold) 1997 M3 (sold) 1989 325ix (sold)
Message # 1 03.05.23 - 15:14:53
RE: want to modify,(create?) function...

////\/\ark

user




Statistics:
Messages: 265
Registration: 03.15.2003

And when you think I went through that thread. Seems I didn't read everything. I tried and indeed, it is what I wanted. Now on the same background and at the same time, can I have more than one clip playng? Can I use the same function (translation) and just use different clips, and change the coordinates? I will try different variations. But just last time, with the other script, I tried, but it allways palyed only the last clip. But don't worry. As I said, I will try different things. What's most important, I got. Thanks to you. Thanks for the help. I appreciate you taking the time to shed some light on this.

---------------------
Message # 2 03.05.23 - 15:25:36
RE: want to modify,(create?) function...

LandShark

user




Statistics:
Messages: 472
Registration: 11.05.2002

Well, I have to say this... This is weird. I mean this program. It works beautiful. Makes you wonder,. Is there a limit. I just want to know if I understand this correct now. Mask(clip.Greyscale.Levels(0, 1, 1, 0, 255)), applyes a transparent layer over the entire screen area? At first I thought it applyes the layer over a certain area. But that can't be right? Because if it did, you wouldn't have to apply the Mask to the previous clip, in order to have another one playing at the same time. Is it right? Anyway, I got it working now. Thanks again for your help and your patience. Really appreciate it.

---------------------
Previously >> 89' M3
Message # 3 03.05.23 - 15:30:31
RE: want to modify,(create?) function...
Next topic: So far... Ogg is the best a/v contain for me at least
Pages:  1  

The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants