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

Make Composition window custom UI always visible

Explorer ,
Sep 16, 2023 Sep 16, 2023

Copy link to clipboard

Copied

A custom UI over the Composition/Layer window can be hidden with Cmd+Shift+H (View->Show Layer Controls). I want to ensure that it is always visible, either even when that setting is false, or by setting it to true, maybe with a script. Is there any way to do either of those things?

TOPICS
SDK

Views

70

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 ,
Sep 19, 2023 Sep 19, 2023

Copy link to clipboard

Copied

LATEST

i don't see a way of changing that button state, or even reading it. not through the SDK, nor the javascript interface.

however... if there's a menu command for that, you can trigger it!

according to https://hyperbrew.co/blog/after-effects-command-ids/ , the command number to "show layer controls" is 2435. you can invoke it using AEGP_DoCommand(). you can also check the state of that menu entry using AEGP_CheckMarkMenuCommand().

it would be wise to check for the command number during global setup using javascript and app.findMenuCommandId("ShowLayerControls"), to ensure future compatibility in case the command id changes. (that happens from time to time...)

yay! perhaps it's possible after all!

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