Having a small issue that I'm hoping easily solvable.
myBtn.onClick = function(){
var Text = myTree.selection.text;
var myComp = app.project.activeItem;
myComp.layer("Text1").property("ADBE Text Properties").property("ADBE Text Document").setValue(Text);
}
This works great, but what I want it to do.
In myTree I have 2 Nodes (male, female), in those I have 3 Nodes I have (tops, bottoms and shoes).
I want to be able to select a Top so that it changes Text1, if I change Bottoms it will change Text2, if I change Shoes, it will change Text3.
I've tried changing this var Text = myTree.selection.text; I thought it would be as simple as changing it to var Text = myTree.male.tops.selection.text; but it appears that it's not as simple as that.
Does anyone know how you can specifically tell it that if A selected Item in Node is true, use selected Item. If not that don't do anything.