Forum Replies Created

Page 76 of 277
  • Filip Vandueren

    September 13, 2020 at 12:59 pm in reply to: Interesting problem with changing multiple text layers

    Here’s a script that changes all the Cyrillic texts to latin in the current comp,
    some formatting will get lost, but that’s a limitation of After Effects.

    app.beginUndoGroup("Cyrillic to Latin");

    var thisComp = app.project.activeItem;

    if (!thisComp.layers) $.writeln("no layers");

    else {

    for(var i=1; i<=thisComp.numLayers; i++) {

    var l = thisComp.layer(i);

    if (l.hasOwnProperty("ADBE Text Properties")) {

    var txt = l("ADBE Text Properties")("ADBE Text Document");

    if (txt.numKeys) {

    for(var j=1; j<=txt.numKeys; j++) {

    txt.setValueAtKey(j, transliterate(txt.keyValue(j)));

    }

    } else {

    txt.setValue(transliterate(txt.value));

    }

    }

    }

    }

    // from @briemens via https://stackoverflow.com/questions/11404047/transliterating-cyrillic-to-latin-with-javascript-function

    var a = {"Ё":"YO","Й":"I","Ц":"TS","У":"U","К":"K","Е":"E","Н":"N", "Г":"G","Ш":"SH","Щ":"SCH","З":"Z","Х":"H","Ъ":"'","ё":"yo","й":"i", "ц":"ts","у":"u","к":"k","е":"e","н":"n","г":"g","ш":"sh","щ":"sch", "з":"z","х":"h","ъ":"'","Ф":"F","Ы":"I","В":"V","А":"a","П":"P","Р":"R", "О":"O","Л":"L","Д":"D","Ж":"ZH","Э":"E","ф":"f","ы":"i","в":"v","а":"a", "п":"p","р":"r","о":"o","л":"l","д":"d","ж":"zh","э":"e","Я":"Ya","Ч":"CH", "С":"S","М":"M","И":"I","Т":"T","Ь":"'","Б":"B","Ю":"YU","я":"ya","ч":"ch", "с":"s","м":"m","и":"i","т":"t","ь":"'","б":"b","ю":"yu"};

    function transliterate(word){

    return word.toString().split('').map(function (c) {

    return a[c] || c;

    }).join("");

    }

    app.endUndoGroup();

  • Filip Vandueren

    September 13, 2020 at 12:13 pm in reply to: Interesting problem with changing multiple text layers

    But then “Ж” would have to become “zh” ?

  • Filip Vandueren

    September 12, 2020 at 11:48 am in reply to: <

    &lt; i &gt;

  • Filip Vandueren

    September 12, 2020 at 11:47 am in reply to: <

    an &lt;i&gt; tag

  • Filip Vandueren

    September 12, 2020 at 11:46 am in reply to: <

    for (i=0; i<10; i++) {

    j= k>2 ? 10:100;

    }

  • Filip Vandueren

    September 12, 2020 at 11:46 am in reply to: <

    an tag

    an tag

    an < i > tag

  • Filip Vandueren

    September 12, 2020 at 11:42 am in reply to: Italicizing only certain word in a line in .mogrt

    Depending on the font, you can get away with faux italics and faux bolds which can be fakes with text-animator ranges.

    See this thread where I built a proof of concept ‘html’ parser so you editors could just type html-style < i > or < b > or < red > or whatever tags <red style=””><red style=””>etc. around the words they want changed.</red></red>

    https://creativecow.net/forums/thread/is-it-possible-to-create-text-flags-for-custom-tex/

    Is it possible to create text flags for custom text styles for Motion Graphics Templates?

  • Filip Vandueren

    September 12, 2020 at 11:29 am in reply to: thisLayer.index For Parameter

    Hi Mike,

    your example works without a problem for me, both in Legacy Extendscript and Javascript engines. (Mac OS X)

  • Filip Vandueren

    September 11, 2020 at 10:01 am in reply to: What determines the size of a PNG in a PNG sequence?

    You mentioned these are two consecutive frames, so it appears After Effects is deciding this at random wether to include the RGB values or not.

    One way to force those transparant.invisible pixels to a single color is this:

    Add a “Solid Composite” effect, but put it’s opacity at 0%

  • Filip Vandueren

    September 11, 2020 at 9:56 am in reply to: What determines the size of a PNG in a PNG sequence?

    hi ferenc,

    if you look at the PNG files in After Effects and enable “RGB Straight” in the RGB button (The Show Channel and color management Settings button) then you’ll see why.

    the 6MB has 1 single color in the transparant pixels , while the 29Mb one has texture stored in all of the RGB pixels.

Page 76 of 277

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy