Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

Treeview reference

$
0
0

Hey Guys,

 

I've gotten so used to Listbox and Dropdown list, I've been requested to change all of that now to incorporate treeview instead.

 

I can build my treeview no problem.

 

var myBtn = w.add ("button", undefined, "Apply");

myBtn.onClick = function (){

     var Text1 = tree.selection.text

     myComp.layer("Text1").property("ADBE Text Properties").property("ADBE Text Document").value.text(Text1);

     }


It's this part that I always struggle with, which is how do I reference an item within the tree.

 

Any help would be appreciated, I would have thought it would be similar to a listbox or a dropdown list, but I can't find an example or forum that discusses these items. Nor is there a manual that references it, I can find how to build the tree, not reference it.


Viewing all articles
Browse latest Browse all 2143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>