Infoseite // Subtitles with script - how Softfläche mean?



Frage von helot88:


Hello experts,

The following starting point. I have a film with a German text is discussed. He should now be provided with English subtitles.
In addition, I have since (the film is just under 10 minutes long and contains 7000 characters spoken words to me) a subtitel-script searched and executed. The synonymous works smoothly.
So: Create text layer, set the font, size and orientation and then to untertitelnden bodies fitted with markers.
Then I run from the script, select the text file, where are all my subtitle, and even the subtitles, all in a single text layer s.der correct place.
And now my problem:
The writing is so easy because ... So I need an area that lies beneath the semi-transparent text. And always only if synonymous subtitles are visible.
Sure, I could create with color separations, but then I would take countless lots of time and would even oppose the time savings, which I have created for myself with the script automation.

Has one any idea how I get on the subtitles such a surface area? I tried it once with mat, but that's it not really synonymous.

Greeting
Sascha

Space


Antwort von Mylenium:

Extend the script just yet. Exactly like text layers can be added synonymous Solids and other levels of the Project and set their properties ...

Mylenium

Space


Antwort von helot88:

@ Mylenium
Yes, that's a good idea. However, I can not really control everything. And script programming unfortunately not one of my strengths.
I've attached this time the script code. Perhaps one can even have mercy and show me the right way once. At least, rudimentary.

Danke schon mal
Sascha

[code: 1:1 f42c53751] (
/ / Subtitle generator by! Rocky
/ / Modified by Colin Harman (http://colinharman.com/) to work on a Mac
/ /
/ / Save this code as
/ / "Subtitles.jsx"
/ /
/ / Create a text file with your subtitles.
/ Screen / Each line of text is one on-line.
/ / To have several lines on-screen s.the same time,
/ / Simply separate them with a pipe (|) character.
/ / Eg "Character 1 Talks | Character 2 interrupts"
/ /
/ / Create a new text layer in your comp, adjust its position,
/ / Make sure the text's centered, so it looks nice
/ Hidden / Add markers (Numpad *) where each subtitle line must be shown /.
/ / With the text layer selected, run the script, and select the subtitles file.
/ / Enjoy!

makeSubs function () (
var layer = app.project.activeItem.selectedLayers [0];

if (layer.property ( "source text") = null) (
var textfile = (fileGetDialog "Select a text file to open." "");
if (textfile! = null) (
Lines var text = new Array ();
textFile.open ( "r", "TEXT", "????");

while (! textFile.eof)
text lines [) textLines.length] = textFile.readln (;

textFile.close ();

var source = layer.property text (source text ");
var markers = layer.property ( "marker");

for (var i = sourceText.numKeys; i> = 1, i -)
sourceText.removeKey (i);

var line = 0;
var SUBTIME, subtext;
for (var i = 1; i <= markers.numKeys; i + +) (
SUBTIME markers.keyTime = (i);
sourceText.setValueAtTime (0, "");

if ((i% 2) == 0) (
subtext = "";
)
else (
subtext = text lines [line]. ("|", replace "\ x0d \ x0a");
line + +;
)
sourceText.setValueAtTime (SUBTIME, new Text Document (subtext));
)
)
)
)
) makeSubs (;
) [/ code: 1:1 f42c53751]

Space





slashCAM nutzt Cookies zur Optimierung des Angebots, auch Cookies Dritter. Die Speicherung von Cookies kann in den Browsereinstellungen unterbunden werden. Mehr Informationen erhalten Sie in unserer Datenschutzerklärung. Mehr Infos Verstanden!
RSS Suche YouTube Facebook Twitter slashCAM-Slash