Copy link to clipboard
Copied
Hi
How do i get the height of a mask ? I've tried:
mask.height
mask.nominalBounds.height
mask_1.height
mask_1.nominalBounds.height
Both on shape, and movieclip, but all of them returns undefined propierty 'height'
Copy link to clipboard
Copied
As far as I'm aware, you don't. Mask shapes are generated when you publish, and are only intended for internal use by the render engine.
What problem are you attempting to solve by getting the mask height?
Copy link to clipboard
Copied
Thank You.
I was trying to auto position elements on stage. I have a scrolling clip and im animating it using gsap. Just wanted to have universal line to position the clip end Y or X based of size of clip and mask. When clip reaches the end point, next animation is trigered.