FORUMS: list search recent posts

How to replace string to source text in script??

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Adrián Wulfrath
How to replace string to source text in script??
on Apr 8, 2016 at 5:17:03 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);
}


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]