Creating Masks with Responsive Vertices
Posted: April 29th, 2013, 3:19 pm
Hello everyone,
I was wondering if it was possible to create mask vertices without actually defining the exact coordinates.
For an example, let's say I wanted to create vertice point exactly 10% from the top and bottom of a layer. I could easily define coordinates like the following:
But when changing the size of the layer, obviously 10% from the top/bottom results in different coordinates. Is it possible to create vertices using percentages or something instead of exact coordinate points?
Thanks for your time and help.
I was wondering if it was possible to create mask vertices without actually defining the exact coordinates.
For an example, let's say I wanted to create vertice point exactly 10% from the top and bottom of a layer. I could easily define coordinates like the following:
Code: Select all
definedMaskShape.vertices = [[0,100],[0,620],[1280,620],[1280,100]];
Thanks for your time and help.
