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

Expression to edit marker comment

Community Beginner ,
Mar 27, 2023 Mar 27, 2023

Copy link to clipboard

Copied

Hi,

I have a layer that has a 'layer marker' on it, and I want this marker comment to always show the opacity value of this layer. I'm using the following expression but it doesn't work:

 

thisLayer.marker.key(1).comment = "Opacity: " + transform.opacity + "%";

 

it gives me this error: "Error: couldn't turn result into numeric value"

What is wrong? is there another way?

Thanks!

 

 

TOPICS
Error or problem , Expressions , How to , Scripting

Views

428

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

correct answers 2 Correct answers

Community Beginner , Mar 27, 2023 Mar 27, 2023

That' unfortunate 😞

Thanks for your answer.

 

Votes

Translate

Translate
Community Expert , Mar 27, 2023 Mar 27, 2023

In general, expressions cannot write or modify anything, except the property they are applied to. A script could do that, but you would need to run it manually each time you want to update the marker.

Votes

Translate

Translate
LEGEND ,
Mar 27, 2023 Mar 27, 2023

Copy link to clipboard

Copied

Marker comments are read-only. You cannot modify them with expressions.

 

Mylenium

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 Beginner ,
Mar 27, 2023 Mar 27, 2023

Copy link to clipboard

Copied

That' unfortunate 😞

Thanks for your answer.

 

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 ,
Mar 27, 2023 Mar 27, 2023

Copy link to clipboard

Copied

In general, expressions cannot write or modify anything, except the property they are applied to. A script could do that, but you would need to run it manually each time you want to update the marker.

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
Community Beginner ,
Mar 27, 2023 Mar 27, 2023

Copy link to clipboard

Copied

LATEST

Hopefully this will change in he future versions. Thank you!

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