ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Regarding SetValue error

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Prem kumar
Regarding SetValue error
on Sep 18, 2018 at 4:39:54 am



var projectData = {
"font": "Spectral"
}
var textData= {
"params":"Pinster"
}
var theClientFont = projectData.font;
var theClientData = textData.params;
var textProp = thisComp.layer(1).text.sourceText;
var textDocument = textProp.value;
textDocument.font = theClientFont;
textDocument.text = theClientData;
textProp.setValue(textDocument);

Unable set value throwing error as setValue i snot a function


Return to posts index

Dan Ebberts
Re: Regarding SetValue error
on Sep 18, 2018 at 6:03:12 am

Are you trying to do this as an expression? setValue() works with scripts, not expressions. So you would need a script to change a font.


Dan



Return to posts index

Prem kumar
Re: Regarding SetValue error
on Sep 19, 2018 at 5:26:34 am



its working in script unable to use in expression is there any way to run the script through cmd


Return to posts index


Prem kumar
Re: Regarding SetValue error
on Sep 19, 2018 at 5:28:13 am



then what should i do im trying these for past 3days


Return to posts index

Prem kumar
Re: Regarding SetValue error
on Sep 19, 2018 at 7:17:22 am



Its working in script how to import it into an project


Return to posts index

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