Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US :: FAQ
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE AFTER EFFECTS:HomeForumBasicsExpressionsTutorialsPodcastsAE TechniquesCreative Cloud DebateFAQ

Bounding box and scripts

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook
Mateo MazziniBounding box and scripts
by on Dec 12, 2012 at 1:08:24 am

I'm looking for a way to access the bounding box of a layer from the extendscript toolkit. I want to create a center pivot script for after effects that could work with a mask, but from using the sourceRectAtTime method I'm only getting the coordinates of the layer size. If you draw a mask, and then select it, After Effects generates the bounding box that would be ideal to center the pivot to (It's not a real center pivot, but it's much better that what I've achieved with the sourceRectAtTime).

Does anybody know how to get to that property?

Thanks!


Return to posts index
Reply   Like  


Dan EbbertsRe: Bounding box and scripts
by on Dec 12, 2012 at 1:46:47 am

The only way I can think of would be to have the script temporarily apply sampleImage() expressions to determine the non-zero alpha extents of the layer. Messy, but do-able.

Dan



Return to posts index
Reply   Like  
+1

Xavier GomezRe: Bounding box and scripts
by on Dec 13, 2012 at 12:26:53 pm

If the mask is open, or if it is not in ADD mode, it won't work though.

Few times i also would have liked to access the mask bounding box/default anchor point too and it has no corresponding script property. Recalculating it from mask data is possible but requires some knowledge on bezier things.

This could be a new scripting feature request.

Xavier


Return to posts index
Reply   Like  
+1

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook


FORUMSTUTORIALSFEATURESVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2014 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]