Is there a way to set a comp viewer to "Fit' using a script?

Community Beginner ,
Apr 10, 2022 Apr 10, 2022

Copy link to clipboard

Copied

Everything is in the subject.

TOPICS
Scripting , User interface or workspaces

Views

66

Likes

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
Adobe Community Professional ,
Apr 10, 2022 Apr 10, 2022

Copy link to clipboard

Copied

You can use the respective executeMenuCommand() functions. Not sure how much sense this makes in your example, though, since you would need to ensure that the correct items are selected and the correct panel active. Creating the script is probably more convoluted than just doing it directly.

 

Mylenium

Likes

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
Adobe Community Professional ,
Apr 11, 2022 Apr 11, 2022

Copy link to clipboard

Copied

LATEST

The viewer object does not expose such a property and as fas as I know there is not even a menu command for this. Hence, even Mylenium's idea for a workaround won't work unfortunately, I think.

Likes

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