• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

apply motion blur with all layers with keyframes script

Explorer ,
Apr 16, 2021 Apr 16, 2021

Copy link to clipboard

Copied

apply motion blur with all layers with keyframes script ???

TOPICS
Scripting

Views

433

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 16, 2021 Apr 16, 2021

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Apr 19, 2021 Apr 19, 2021

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 03, 2021 May 03, 2021

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 ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
May 04, 2021 May 04, 2021

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines