Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Applying onClick for multiple checkboxes at a time..

  • Applying onClick for multiple checkboxes at a time..

    Posted by Ram Manohar on June 22, 2010 at 5:12 am

    I have an array called myArr,which contains some effect names.I wrote the script to create checkboxes for each effect using another array.. now i want to apply onClick function for all the checkboxes.Actually my aim is .. if the user checks a checkbox of a particular effect then it is to be enabled or disabled in the project.

    any help plese…. ❗ ❓
    thanx in advance…
    myscriptoutput.jpg

    function buildUI(thisObj)
    {
    var chkbox=new Array();
    var pal=(thisObj instanceof Panel)?thisObj:new Window("palette","Total Effects",[100,100,500,500],{resizeable:true});
    if(pal==null)
    return pal;
    else
    {
    var l=myArr.length;
    for(i=0,y1=15,y2=35;i<l;i++,y1+=25,y2+=25)
    {
    chkbox[i]=pal.add("checkbox",[15,y1,150,y2],myArr[i]);
    }
    [b]// here i want to apply onClick function to all the checkboxes, i tried it but i can't get it.[/b]

    }
    }

    manohar

    Ram Manohar replied 16 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