3 Replies Latest reply on Apr 21, 2011 5:56 AM by Rick Gerard

    Expression query concerning anchor point and masks

    a178Design Level 1

      Hi everyone,

       

      As im new to expressions Id like to know if there is one that could place the anchor point to the middle of the masks left and right points.

      So essentially it would be something like:

       

      Mask right value, subtract mask left value, divide result by 2, and add result to mask left value. and this end result would be the anchors x value.

       

      Plus then the position values would need to be updated as well

       

      3.jpg.

      This image shows a picture divided into 10 parts by use of the mask, Each section has its own layer to manipulate individually

       

      I would like the anchor points to move from the middle of the original image to the middle of each of the masked sections. see 2 images below.

      2.jpg

      (only 3 sections visible in this image) Left most section is current layer.

      Anchor point sits in middle now, id like it to sit in middle of left section, where the arrow points. The section would need to stay where it is now so position values would need to be updated as well.

       

      1.jpg

       

      Another example this one is the right most, in all there are 10 mask sections.

       

      4.jpg

      Each section has its own layer to manipulate individually.

       

      Ultimately id like to make an effect of rotating the sections on their Y axis similar to those billboards with multiple ads on them. see link below

       

      http://www.youtube.com/watch?v=JlZIM6PO0Oc

       

      Hope this is clear enough?

       

      Thanks guys.