Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Treeview reference

  • Treeview reference

    Posted by Scott Mcgee on June 13, 2017 at 3:46 pm

    Hey Guys,

    I’m having to rewrite some script to change my listbox into a treeview… I would have thought that the script should have been relatively similar, but I can’t seem to get it to work. Anyone dealt with treeviews and how to pull the selected item?

    Here’s a cobbled together version I redone from my listbox script.

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

    myBtn.onClick = function(){

    var sel = myTree.selection;
    var myComp = app.project.activeItem;
    if(!myComp || myComp.typeName !== “Composition”) return;
    var n;

    for (n=0; n

    Scott Mcgee replied 9 years, 2 months 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