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

apply motion blur with all layers with keyframes script

Explorer ,
Apr 16, 2021 Apr 16, 2021

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

TOPICS
Scripting
934
Translate
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

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

Translate
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

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

Translate
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

thanks for script what is collapse transformation do ?

is that script apply motion blur to all layer or to only layers with motion ?

Translate
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
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

Translate
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