FORUMS: list search recent posts

script the value of Position of an Animator in a text layer

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Pascal Hage
script the value of Position of an Animator in a text layer
on Nov 12, 2014 at 8:06:44 pm

Hi guys,

Here is a challenge for me, and I hope an easy thing for others... I would like to set the value of the Position property of an Animator in a text layer.
Just not to confuse anybody, it's not the Position property in the Transform section I am targeting but really the one in an Animator.

I have to use a script as I am using the sourceRectAtTime() function to identify the width for the text layer.

Any help would be greatly appreciated.
Thanks
PH


Return to posts index

Dan Ebberts
Re: script the value of Position of an Animator in a text layer
on Nov 12, 2014 at 8:36:09 pm

Something like this should work:

var myLayer = app.project.activeItem.layer(1);
var myProp = myLayer.property("Text").property("Animators").property("Animator 1").property("Properties").property("Position");
myProp.setValue([50,50])



Dan



Return to posts index

Pascal Hage
Re: script the value of Position of an Animator in a text layer
on Nov 13, 2014 at 3:21:29 pm

Wow! You're a star, this is exactly what I needed!

Actually, I was missing the two extra property ("Animator") and ("Properties")...

Thanks Dan


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]