preludium975
3rd September 2018, 21:19
I want to fillmargin in a specified range. How can I do that?
I tried this, but this isn't working. :/
fill=last.fillmargins(0,0,5,0)
ConditionalFilter(last, fill, "SceneType", "<", "1")
ConditionalReader("X:\deadpool\intro.txt", "SceneType")
intro.txt:
type int
default 0
R 75 577 1
The full script is here: link (https://pastebin.com/B9a2Um0F)
This is applying the fillmargins on all frames.
StainlessS
4th September 2018, 13:48
preludium975,
This works I guess. [perhaps you just could not see it working, or expected something else like LetterBox]
# Stack Overhead Subtitle Text, with optional FrameNumber shown.
Function TSub(clip c,string Tit,Bool "ShowFrameNo",Int "Col"){
c.BlankClip(height=20,Color=Default(Col,0))
(Default(ShowFrameNo,False))?ScriptClip("""Subtitle(String(current_frame,"%.f] """+Tit+""""))"""):Subtitle(Tit)
Return StackVertical(c).AudioDubEx(c)
}
Colorbars(Pixel_Type="YV12").Letterbox(10,10,10,10,Color=$FF0000).KillAudio
#Uncomment One of below lines
fill=last.Letterbox(40,50,60,70).Subtitle("LetterBox",align=5,size=48)
#fill=last.fillmargins(40,50,60,70).Subtitle("Filled",align=5,size=48)
ConditionalFilter(last, fill, "SceneType", "<", "1")
ConditionalReader("Intro.Txt", "SceneType")
Return TSub("Source",True,$0000FF)
/* Contents of Intro.Txt
type int
default 0
R 75 577 1
*/
Works fine on specified frames here.
EDIT: For any Wiki Editor, above script is excellent example for any/all FillMargins/LetterBox/ConditionalReader/ConditionalFilter on Wiki.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.