Forum Replies Created

Page 2 of 3
  • Jakob Wagner

    September 24, 2016 at 5:32 pm in reply to: Mouseover on palette

    I’m working on OSX and the newest version of AE. Once the plugin is done, I’ll be testing it on different systems/versions.

    So for you on windows 7 the code you wrote, didn’t work?

  • Jakob Wagner

    September 24, 2016 at 2:54 pm in reply to: Mouseover on palette

    Xavier, THANK YOU! It works perfectly. 🙂
    I really appreciate it.

  • Jakob Wagner

    August 22, 2016 at 1:43 pm in reply to: Select layer with script

    Yes. Of course… 🙂 Thanks.

    Did actually try it, but did something else wrong.

  • Jakob Wagner

    August 16, 2016 at 8:06 am in reply to: Get path to property of a layer

    Hi Xavier

    Thank you very much for taking the time. This is great info!

    Have an awesome day,
    Jakob

  • Jakob Wagner

    August 15, 2016 at 12:06 pm in reply to: Get path to property of a layer

    Alright. Thank you for the warning. I have changed this line:
    propPath = “(‘”+prop.name+”‘)”+propPath;
    to this line:
    propPath = “(“+prop.propertyIndex+”)”+propPath;

    And it works too. Is that better?

    Can I ask you one last question? I’m using “prop.parentProperty” to detect if the property is a layer. A layer does not have a parent. Is there a better way of doing that? I tried instanceof, but I couldn’t get it to work.

  • Jakob Wagner

    August 15, 2016 at 9:24 am in reply to: Get path to property of a layer

    I knew it, it was a trap!
    Thank you Xavier. Now it makes better sense.

    For other interested I ended up with this code, which works. (for now)

    function testButtonClick()
    {
    var comp = app.project.activeItem;
    var layers = comp.selectedLayers;
    var layer = layers[0];
    var selectedProperties = comp.selectedProperties;
    var property = selectedProperties[0];

    var propPath = getPropPath(property);
    var prop = eval("layer.property"+getPropPath(property));
    alert(prop.value)
    }

    function getPropPath(prop)
    {
    var layerRoot = false;
    var propPath = "";

    while(prop.parentProperty)
    {
    propPath = "('"+prop.name+"')"+propPath;
    prop = prop.parentProperty;
    }
    return propPath;
    }

  • Jakob Wagner

    May 25, 2016 at 1:20 pm in reply to: Looping through effects

    Like this. 😉

    var len = l.effect.numProperties;
    for(var i=0;g

  • Jakob Wagner

    May 11, 2016 at 1:47 pm in reply to: Changing oreder of effects

    AWESOME! Thanks. 🙂

  • Jakob Wagner

    April 14, 2016 at 10:05 am in reply to: Opening colorista II

    Is it possible to somehow make a preset from the colorista II and aply it to colorista II?

  • Hi

    1. Create the five layers. 😉

    2. Create a null and rename it to “control”.

    3. Create a expression control slider on the null.

    4. Rename the slider to “Turnus”.

    5. Insert this code in the Opacity property in all the five layers:


    var totalLayers = 5;
    var layerIndex = 0;
    var visible = thisComp.layer("control").effect("Turnus")("Slider")>100/totalLayers*layerIndex;
    opacity = visible?100:0;

    6. Layer index on the first layer is 0. Next layer is 1, etc..

    Drag/animate the slider from 0 to 100.

    Hope it helps.

    – Jakob Wagner

Page 2 of 3

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