ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Access a Layer's Comment Field in an Expression

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Daniel Russell
Access a Layer's Comment Field in an Expression
on Oct 21, 2012 at 5:00:56 am

I am looking for how to access a layer's comment field from an expression. So far, all I have found is how to access markers. What i want is the main layer comment, the same one that Zorro the Tagger uses. Anyone know how to do this?

Thnks in advance!


Return to posts index

Dan Ebberts
Re: Access a Layer's Comment Field in an Expression
on Oct 21, 2012 at 4:16:34 pm

As far as I know, there's no way to do that.

Dan



Return to posts index

Yaavi Foxy
Re: Access a Layer's Comment Field in an Expression
on Oct 5, 2018 at 2:05:22 pm

I'm not sure whether you can do that in an expression, but you can easily do it in a script.

// get current layer
var comp = app.project.activeItem;
var layer = comp.layer(1);
// get comment
var comment = layer.comment;

//set comment
layer.comment = "comment";


Return to posts index

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