View Single Post
Old 15th March 2007, 06:45   #616  |  Link
nibbles
Registered User
 
nibbles's Avatar
 
Join Date: Aug 2006
Posts: 50
Quote:
Originally Posted by qwerpoi View Post
* added pixel position and color information to status bar (suggested by nibbles, jmac698)

Absolutely fantastic. I really appreciate the feature for updating the function defs based on 2.5.7.
Your app works so well, on one of my computers, I was still using v1.2.1.

I have a macro question if anyone has a few minutes. I have an avs script that starts off like this:
Code:
c1=AVISource("K:\B\1.avi", audio=true, pixel_type="YUY2").Trim(4,143101).Crop(8,0,-8,-10,true)
c2=AVISource("J:\B\2.avi", audio=true, pixel_type="YUY2").Trim(97,143195).Crop(8,0,-8,-10,true)
c3=AVISource("J:\B\3.avi", audio=true, pixel_type="YUY2").Trim(97,143195).Crop(8,0,-8,-10,true)
What I've done is write a macro that when activated adds a
Code:
c2=c2.DeleteFrame(1234)
type of command in that script. Once I delete a frame from c2 for instance, I was hoping I could add some python code to my macro that reads in the second line and adds 1 to the Trim command final frame value so that the total number of frames is unchanged, like this:
Code:
c1=AVISource("K:\B\1.avi", audio=true, pixel_type="YUY2").Trim(4,143101).Crop(8,0,-8,-10,true)
c2=AVISource("J:\B\2.avi", audio=true, pixel_type="YUY2").Trim(97,143196).Crop(8,0,-8,-10,true)
c3=AVISource("J:\B\3.avi", audio=true, pixel_type="YUY2").Trim(97,143195).Crop(8,0,-8,-10,true)
But I have no idea how to parse the line and add 1 to the value.
Ok thanks for all you've done. Have a great week!
nibs
nibbles is offline   Reply With Quote