Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

Convert all keyframes to easy ease or linear

$
0
0

Hi there

 

I m new around and scripting. I write some code that iterates through all items, comps, layers then activates motion blur for each layer, comps.

 

Where i stuck is reaching all properties of all layers in all comps then every keyframes and change interpolation to easy ease or linear. Here is my script for motion blur :

 

[code]

//Enables disables motion blur for all layers and activates global motion blur switch for all comps.

 

 

//.numItems = extracts total number of items in defined variable = proj;

 

 

 

 

var proj = app.project;

var itemTotal = proj.numItems;

var curItem, curComp, totalComps, totalLayers, curLayer;

var itemAry = new Array ();

 

 

//iterate all items through project

 

 

for (var i = 1; i<= itemTotal; i++){

   

curItem = proj.item(i);

 

 

 

 

//check if current item is a comp

 

 

if(curItem instanceof CompItem){

   

    itemAry[itemAry.length] = curItem;

   

    }

   

   

    }

 

 

totalComps = itemAry.length;

 

 

for (var c = 0; c<totalComps; c++){

   

   

    curComp = itemAry[c];

    totalLayers = curComp.numLayers;

   

//enable global motion blur for all comps   

   

    curComp.motionBlur = true;

   

//loop layers + iterate all layers and enable motion blur for iterated layers

   

    for (var l=1; l<=totalLayers; l++){

       

        curLayer = curComp.layer (l);

       

       

//enable motion blur for all iterated current layers

       

        curLayer.motionBlur=true;

 

 

       

        }

   

   

    }

 

 

[/code]

 

I dont know if i can continue from here on or need to start from scratch. Any help or tip will be appreciated.


Viewing all articles
Browse latest Browse all 2143

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>