Skip navigation
jjjbast
Currently Being Moderated

Expression on curve effect property

Nov 22, 2011 8:36 AM

Hi,

 

I'd like in my script to add an expression on a curve effect and it seems not supported. Here is a snippet to demonstrate my problem :

 

alert(app.project.item(1).layer("H01P048_MV_CH_Grp01.[00604-00648].exr ").property("Effets").property("Courbes").property("Courbes").canSetEx pression)

try

{

    app.project.item(1).layer("H01P048_MV_CH_Grp01.[00604-00648].exr").pr operty("Effets").property("Courbes").property("Courbes").expression = "test";

}

catch(e)

{

    alert(e);

}

 

It always returns False and the following exception :

 

"Unable to define expression or expressionEnabled for this property."

 

What seems weird to me, is that manually in After Effects I can add this

expression.

 

Anyone have any clues?

Thanks in advance

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points