Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to replace string to source text in script??

  • How to replace string to source text in script??

    Posted by Adrián Wulfrath on April 8, 2016 at 5:17 pm

    Hi, i actually have this script but i dont know how to change what i put inside my string and change my source text

    Here is my code, and when i press the button change the text.

    //AQUÍ EMPIEZA A CREARSE LA VENTANA DEL PANEL

    {
    function myScript(thisObj){
    function myScript_buildUI(thisObj){
    var myPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette","Panel Estudio Voraz",undefined,{resizable:true});

    res = "group{orientation:'column',\
    groupOne: Panel{text:'Master', orientation:'column',alignment:['fill','fill'],alignChildren:['fill','fill'],\
    txtWrite: EditText{text:''},\
    txtBtn: Button{text:'Press'},\
    },\
    }";

    myPanel.grp = myPanel.add(res);

    var Btn = myPanel.grp.groupOne.txtBtn

    var a = "hola"

    var bstr = myPanel.grp.groupOne.txtWrite.text

    Btn.onClick = function()
    {

    }

    //END PANEL --------------------------- NO PONER NADA ABAJO DE ESTA LÍNEA -------------------------------
    return myPanel;

    }

    var myScriptPal = myScript_buildUI(thisObj);

    if((myScriptPal != null) && (myScriptPal instanceof Window)){
    myScriptPal.center();
    myScriptPal.show();
    }

    }

    myScript(this);
    }

    Adrián Wulfrath replied 10 years, 1 month ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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