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!
That' unfortunate 😞
Thanks for your answer.
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.
Copy link to clipboard
Copied
Marker comments are read-only. You cannot modify them with expressions.
Mylenium
Copy link to clipboard
Copied
That' unfortunate 😞
Thanks for your answer.
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.
Copy link to clipboard
Copied
Hopefully this will change in he future versions. Thank you!