Forum Replies Created

  • in the illustrator, stroke and fill are in the same layers but when import to after effect stroke and fill are in different layers

  • I set it to center

  • It always be like this when I create shape from vector layer

  • Oh, yes this is some thing that I want

    thank you so much

  • I had the variable BEYER for catch the layer that name “BLACK EYE R” and I want it show in expression by script Umm.. I didn’t want to write like this

    FACE[i].transform.position.expression = ‘b=thisComp.layer(” BLACE EYE R”).transform.scale’

    because I have the variable BEYER that collect this layer that make me want to write

    FACE[i].transform.position.expression = ‘b=thisComp.layer(BEYER.name).transform.scale’

    how can I do like this ?

    thank you.

  • Supak Suksawat

    February 24, 2022 at 8:33 am in reply to: How can I put 2 loop in 1 expression ?

    Oh, Thank you 🙂

    Yes I need something like this.

  • Supak Suksawat

    August 24, 2021 at 4:40 am in reply to: What statement to check character in word ?

    what script to reset value in array and run script again ?

    I mean when I put my script in button.onclick it get leyer value that I check before not layer value that I want to check now, It can just 1 time and reset script but I want it reset value when check done for I can check any time that I want, don’t run script again.

  • Supak Suksawat

    August 24, 2021 at 3:03 am in reply to: What statement to check character in word ?

    I check value in array I found it get value 0-12 and skip to 15 16 that mean the loop that I use to alert it can’t run when it come to layer head because it don’t have value 13-14 in array that make it error right ? and how to solved it ?

  • Supak Suksawat

    August 24, 2021 at 2:05 am in reply to: What statement to check character in word ?

    ——————————————

    var layersList = app.project.activeItem.selectedLayers;

    var checkHAT =”HAT”;

    var checkGAP =”GAP”;

    var checkHAIR =”HAIR”;

    var checkEAR =”EAR”;

    var checkNOSE = “NOSE”;

    var checkMOUTH = “MOUTH”;

    var checkEYE = “EYE”;

    var checkCHEEK=”CHEEK”;

    var checkHEAD = “HEAD”;

    var paH =0 ;

    var paF =[layersList] ;

    for (i=0;i<layersList.length;i++){

    var child= layersList[i].name;

    /* check HEAD */

    if (child.indexOf(checkHEAD) >-1){

    paH=layersList[i];

    }

    /* check FACE*/

    else if (child.indexOf(checkHAIR) >-1){

    paF[i] = layersList[i];

    //alert(paF[i].name);

    }

    else if (child.indexOf(checkEAR) >-1){

    paF[i] = layersList[i];

    //alert(paF[i].name);

    }

    else if (child.indexOf(checkNOSE) >-1){

    paF[i] = layersList[i];

    //alert(paF[i].name);

    }

    else if (child.indexOf(checkMOUTH) >-1){

    paF[i] = layersList[i];

    //alert(paF[i].name);

    }

    else if (child.indexOf(checkEYE) > -1){

    paF[i] = layersList[i];

    //alert(paF[i].name);

    }

    else if (child.indexOf(checkCHEEK) > -1){

    paF[i] = layersList[i];

    //alert(paF[i].name);

    }

    else if (child.indexOf(checkGAP) > -1){

    paF[i] = layersList[i];

    //alert(paF[i].name);

    }

    else if (child.indexOf(checkHAT) > -1){

    paF[i] = layersList[i];

    //alert(paF[i].name);

    }

    }//loop out

    if(paNe==0){

    alert(“No “+checkNECK);

    }

    else if(paNe!=0){

    alert(paH.name);

    }

    if(paH==0){

    alert(“No “+checkHEAD);

    }

    else if(paH!=0){

    for(i=0;i<layersList.length;i++){

    alert(paF[i].name);

    }

    }

    ————————————–

    you will see in picture when run head it not run more and error ,but if I move layer hair 04 and hat 02 at top layer head it run

  • Supak Suksawat

    August 23, 2021 at 3:10 pm in reply to: What statement to check character in word ?

    I have a little bit problem about loop

    ——————

    for (i=0;i<layersList.length;i++){

    …..

    else if (child.indexOf(checkHEAD) >-1){

    paH=layersList[i];

    }

    else if (child.indexOf(checkHAIR) >-1){

    paF[i] = layersList[i];

    //alert(paF[i].name);

    }

    }

    if(paH==0){

    }

    else if(paH!=0){

    for (i=0;i<layersList.length;i++){

    alert(paF[i].name);

    }

    }

    I select layer and when it see layer checkHEAD it jump out loop don’t alert layer behind layer checkHEAD but it have layer that should alert behind layer checkHEAD.

    It tell

    alert(paF[i].name);

    this line is undefined is not an object when it check to layer checkHEAD

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