ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

[Scripting] How can I add Animator properties such as (Scale), (Fill Color RGB) to a text layer using extendscript?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Adirai Maji
[Scripting] How can I add Animator properties such as (Scale), (Fill Color RGB) to a text layer using extendscript?
on Mar 7, 2020 at 3:17:49 pm

I want to know how can I add animator properties to a text layer. As far as I've searched I can only able to create "Animator 1" group under animator properties in After Effects scripting. I can't find a way to add properties into it. Can anybody help me to do that?

This is what I have so far 👇

app.project.activeItem.layer(1).Text.Animators.addProperty("ADBE Text Animator")

==================================================================================================
Thanks in Advance...

- Adirai Maji


Return to posts index

Andrei Popa
Re: [Scripting] How can I add Animator properties such as (Scale), (Fill Color RGB) to a text layer using extendscript?
on Mar 9, 2020 at 7:41:26 am

Most of the properties:

var anim = app.project.activeItem.layer(1).Text.Animators.addProperty("ADBE Text Animator");

//add range selector
anim("ADBE Text Selectors").addProperty("ADBE Text Selector");


var animProperties = anim("ADBE Text Animator Properties");

//Add properties

//andchorPoint
animProperties.addProperty("ADBE Text Anchor Point 3D");

//position
animProperties.addProperty("ADBE Text Position 3D");

//scale
animProperties.addProperty("ADBE Text Scale 3D");

//skew
animProperties.addProperty("ADBE Text Skew");

//skew axis
animProperties.addProperty("ADBE Text Skew Axis");

//rotation
animProperties.addProperty("ADBE Text Rotation");

//Opacity
animProperties.addProperty("ADBE Text Opacity");


Andrei
My Envato portfolio.


Return to posts index

Andrei Popa
Re: [Scripting] How can I add Animator properties such as (Scale), (Fill Color RGB) to a text layer using extendscript?
on Mar 9, 2020 at 7:45:08 am

To get more of the matchNames, use rd_gimmePropPath on those properties, after you manually added them.

Andrei
My Envato portfolio.


Return to posts index


Adirai Maji
Re: [Scripting] How can I add Animator properties such as (Scale), (Fill Color RGB) to a text layer using extendscript?
on Mar 10, 2020 at 5:38:51 am

Thank you so much. It helped.

==================================================================================================
Thanks in Advance...

- Adirai Maji


Return to posts index

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