Copy link to clipboard
Copied
apply motion blur with all layers with keyframes script ???
Copy link to clipboard
Copied
Hey Anthony, the description of a post is supposted to be definitive - now its not exactly clear what you are trying to achieve.
Anyways, if you want to set motion blur to all layers existing in a comp:
1. Run a loop through all layers.
2. Apply this: app.project.item(index).layer(index).motionBlur.enabled = true
Copy link to clipboard
Copied
Here is my script which I still use to enable MB (and other stuff) on all layers. It works recursivly
Just grab the recursiv function and the MB part and add a check for keyframes with an if-statement.
https://github.com/mrtnRitter/OptAllLayers
*Martin
Copy link to clipboard
Copied
thanks for script what is collapse transformation do ?
is that script apply motion blur to all layer or to only layers with motion ?
Copy link to clipboard
Copied
Collapse transformation is activating continuous rasterization. I think, if the layer is 3D, it's CT, and if it is a vector layer, it's CR.
If a layer is set to shy, CT/CR will ignor this layer. This was a hot fix to deal with effects which got broken when using CT/CR.
Motion blur not applied, but enabled. It is not an effect, but the layer option.
The script is always affecting all layers. However, if the layer isn't moving, there will be no motion blur, even when it is enabled.
*Martin