photoguy123
1st January 2010, 02:50
Can it really be possible there is no easy way to display text that automatically wraps within a rectangle?
If there is no easy way to do this I'm immediately writing a plug-in.
Thanks for any ideas,
Lee
photoguy123
1st January 2010, 03:59
Aegisub?
The problem with Aegisub is that it feels like trying to kill a fly with a sledgehammer. It looks very powerful, but also relies on external files using specialized captioning formats and requires some learning (shudder).
Why can't there be a simple plug with script like this that can wrap text within the rectangle (pretend the text is long)?
clip.Title("Hello World", "Arial", size=48, 100,100,600,600)
Does anyone think it could be useful? If so - as I said I'm willing to volunteer.
DarkT
1st January 2010, 04:33
mhmhmh, to be honest aegisubs is not complicated to learn... But yes, I too wish there were some basic functions which could be drawn upon without having to resort to aegisubs... Then again... Aegisubs is REALLLLY not that difficult to learn... *shrugs*
thetoof
1st January 2010, 05:02
well, in aegisub this is uber easy to do, especially since they added assdraw3 (misleading name... ass = aegisub styled script or Advanced SubStation Alpha Subtitle File ^^) to the main core.
took me a few seconds and I hadn't touched it for months...
This what the .ass (opened with notepad) looks like: [Script Info]
Title: Default Aegisub file
ScriptType: v4.00+
WrapStyle: 0
PlayResX: 640
PlayResY: 480
ScaledBorderAndShadow: yes
Last Style Storage: Default
Video File: G:\Anime\Gundam\[Jeff] Gundam Evolve 1-15\[Jeff] Gundam Evolve 01.mkv
Video Aspect Ratio: 0
Video Zoom: 8
Video Position: 0
[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Default,Arial,48,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,2,2,10,10,10,1
[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: 0,0:00:00.00,0:00:05.00,Default,,0000,0000,0000,,{\p1}m 0 0 l 1 -100 l 600 -100 l 600 0 {p}
Dialogue: 0,0:00:00.00,0:00:02.00,Default,,0000,0000,0000,,Hello World
Dialogue: 0,0:00:02.00,0:00:04.00,Default,,0000,0000,0000,,
All I had to do was draw a 100x600x100x600 rectangle in assdraw3, copy paste the resulting vectorial drawing command with {\p1}{p} around, add a line with the text you wanted and set Arial 48 in the styles manager. Then, save as and add textsub("file.ass") at the end of my avs script. You can also time by frame if you want.
photoguy123
1st January 2010, 05:15
Thanks Toof and Dark for the education - I agree it's not rocket science, and I like the fact it's called AssDraw.
Still I wish it didn't require a separate file outside of the script for simple things.
I think I'll go ahead and write a plug-in - and besides saving the external file, there will not be any new syntax or external tools required.
For people doing captioning it will be no help - but I think it could help people who:
1) Want to do things more like titling instead of captioning
2) Want a plain ol' avisynth command and nothing else for simplicity
If there are any requests for parameters I'm open to ideas, otherwise I'll followup with what I come up with.
Happy new year -
pbristow
14th April 2011, 17:13
Hey photoguy123, did this plugin idea get anywhere? I would find it useful. :)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.