Forum Replies Created

  • Yes, for scripting!

    Can you help me, what’s this attributes?
    For example on this code:

    var selectedLayers = app.project.activeItem.selectedLayers;
    for (i = 0; i < selectedLayers.length; i++)
    {
    test(selectedLayers[i]);
    }
    function test(thisLayer)
    {
    var spl = thisLayer.selectedProperties.length;
    try
    {
    var selectedKeys = 1;//first keyframe
    var newKeyTime = 2;// secounds 2 for example
    thisKeyValue = thisLayer.selectedProperties[spl-1].keyValue(selectedKeys);
    //*** Add all the attributes But I don't know what?!
    thisLayer.selectedProperties[spl-1].removeKey(selectedKeys);//delete old keyframe
    //*** Copy values to ney keyframe
    thisLayer.selectedProperties[spl-1].setValueAtTime(newKeyTime , thisKeyValue);
    }
    catch (err) {
    alert(err);
    }
    }

    Thank you

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