Layer Properties
When working with formulas, you have the option to utilize various layer properties, including but not limited to position, height, width, and opacity.
Using Layer Properties
To refer to a layer, use backticks (`) around the layer name.
To reference a layer property, add a period (.) followed by the property after the second backtick.
`layerName`.xx-coordinate of a layer.
`layerName`.yy-coordinate of a layer.
`layerName`.widthWidth of a layer.
`layerName`.heightHeight of a layer.
`layerName`.scaleXScale factor X of a layer.
`layerName`.scaleYScale factor Y of a layer.
`layerName`.rotationRotation of a layer.
`layerName`.rotation3d3D rotation of a layer.
`layerName`.opacityOpacity of a layer.
`layerName`.radiusRadius of a layer.
`containerName`.scrollOffsetCurrent scroll value of a scroll or paging container.
`layerName`.fillColorColor (hex) of a layer.
`layerName`.fillOpacityColor fill of a layer.
`layerName`.borderWidthBorder width of a layer.
`layerName`.borderColorBorder color (hex) of a layer.
`layerName`.borderOpacityBorder opacity of a layer.
`layerName`.shadowOffsetXx-coordinate of the shadow of a layer.
`layerName`.shadowOffsetYy-coordinate of the shadow of a layer.
`layerName`.shadowBlurShadow blur of a layer.
`layerName`.shadowColorShadow color (hex) of a layer.
`layerName`.shadowOpacityShadow opacity of a layer.
`layerName`.textText in a text or input layer.
`layerName`.textColorColor of a text or input layer.
`layerName`.textOpacityOpacity of a text or input layer.
`layerName`.currentTimeThe current playtime of a video, audio, or Lottie layer.
`layerName`.totalTimeThe total playtime of a video, audio, or Lottie layer.