Skip to main content
Known Participant
October 28, 2019
Question

height of a mask

  • October 28, 2019
  • 1 reply
  • 302 views

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'

    This topic has been closed for replies.

    1 reply

    Legend
    October 28, 2019

    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?

    ed971Author
    Known Participant
    October 29, 2019

    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.