Forum Replies Created

Page 5 of 5
  • Rainier Raydán

    May 10, 2017 at 9:37 pm in reply to: Adding label to specific item EXTENDSCRIPT

    I think I solve it with this :

    app.project.items.addFolder("# RENDER comps");
    app.project.items.addFolder("FOOTAGE");
    app.project.items.addFolder("MATERIALES");
    app.project.items.addFolder("PRECOMPS");
    app.project.items.addFolder("Solids");

    var i = 1;

    while (i<= app.project.items.length){

    var itemX = app.project.item(i);

    i = i + 1;
    if (itemX.name == "# RENDER comps"){

    itemX.label = (1);
    }
    }

    But know I want to add a line that ignores “Solids” folder if the folder already exist.

    Can anybody help me?

  • Rainier Raydán

    May 1, 2017 at 9:18 pm in reply to: Hide layer with conditional in script

    Ok, this is what I endup doing:


    myPanel.grp.selectBtn.onClick = function() {

    var myComp = app.project.activeItem;
    var hideLayerCtrl = myComp.layer("Controller").property("ADBE Effect Parade").property("ADBE Checkbox Control").property("ADBE Checkbox Control-0001");
    if (myPanel.grp.myDropDownList.selection == 1){
    myComp.layer("BG 1").enabled = true;
    myComp.layer("BG 2").enabled = false;
    myComp.layer("BG 3").enabled = false;
    }
    if(myPanel.grp.myDropDownList.selection == 2){
    myComp.layer("BG 1").enabled = false;
    myComp.layer("BG 2").enabled = true;
    myComp.layer("BG 3").enabled = false;
    }
    if(myPanel.grp.myDropDownList.selection == 3){
    myComp.layer("BG 1").enabled = false;
    myComp.layer("BG 2").enabled = false;
    myComp.layer("BG 3").enabled = true;
    }

    It works for me! I guess there is a better and clean way to do it but for me works.

    Thanks!

  • Rainier Raydán

    May 1, 2017 at 2:21 pm in reply to: Hide layer with conditional in script

    Ok, now I want that my dropdownlist sets the background of my composition. I have 3 layers, each one is a solid color (later on it will be other composition or a prerender background) and the idea is that when I choose one item in the dropdownlist one of the items shows and the other 2 hide.

    This is what I have:


    res = "group{orientation:'column', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\
    myGroup: Group{orientation:'column', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\
    myStaticText: StaticText{text:'StaticText Text'},\
    myEditText: EditText{text:'EditText text'},\
    },\
    myDropDownList: DropDownList{properties:{items:['[ BACKGROUND ]', 'CYAN', 'AMARILLO', 'MAGENTA']}},\
    },\
    }"

    // Adds resource string to panel
    myPanel.grp = myPanel.add(res);

    // DropDownList default selection
    myPanel.grp.myDropDownList.selection = 0; /// Dropdown index starts at 0

    // Assign function to UI elements

    Anyone can help me with this?

  • Rainier Raydán

    May 1, 2017 at 1:47 pm in reply to: Hide layer with conditional in script

    Oh I see. I dont need the conditional! Excellent! thanks fior the help! It was really helpfull 🙂

  • Rainier Raydán

    May 1, 2017 at 1:45 pm in reply to: Hide layer with conditional in script

    Sorry I didn’t catch you… I have to write this?

    var myComp = app.project.activeItem;
    var hideLayerCtrl = myComp.layer("Controller").property("ADBE Effect Parade").property("ADBE Checkbox Control").property("ADBE Checkbox Control-0001");
    if (hideLayerCtrl.value == true) {
    myComp.layer("BG 1").enabled = true;
    myComp.layer("BG 1").enabled = hideLayerCtrl.value;}

    I guess not becouse its not working…

  • Rainier Raydán

    May 1, 2017 at 1:29 pm in reply to: Hide layer with conditional in script

    Thanks for the answer! I ‘ve try it and it works just when the checkbook is on. How can I add to the conditional so it can be hide when the checkbox is off and shows when the checkbox is on?

  • Wow! It worked! Thanks! ?

Page 5 of 5

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy