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

Set Work Area to Selected Layers with script, command id

New Here ,
Apr 26, 2023 Apr 26, 2023

Copy link to clipboard

Copied

How to "Set Work Area to Selected Layers" with a script? 
app.findMenuCommandId("Set Work Area to Selected Layers") writes 0.
Or if there is no way, how to trim comp to selected layers area. I wanted to set the work area to selected laters and then trim comp to the work area. But if there is no way to do these two things with a script, how to achieve this with short steps?

TOPICS
Scripting , SDK

Views

287

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
Community Expert ,
Apr 26, 2023 Apr 26, 2023

Copy link to clipboard

Copied

https://hyperbrew.co/blog/after-effects-command-ids/

the command number for trimming the comp to the work are is 2360.

i couldn't find a command number for setting the work area to the selected layers.

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
Community Expert ,
Apr 27, 2023 Apr 27, 2023

Copy link to clipboard

Copied

LATEST

Here is an Automation Blocks script to set the workarea to all selected layers:

Screenshot 2023-04-27 at 15.16.38.png

See this post for more details.

If you want to script it yourself without Automation Blocks, you can use the same logic for your js code.

 

 

 

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects

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