Skip to main content
Jochem.dk
Participating Frequently
October 20, 2022
Question

showing - non exsisting - error messages on opacity expression

  • October 20, 2022
  • 1 reply
  • 99 views

Hi, I was just testing a jsx file that sets expressions to specific layers...

 

It gives an error on the opacity expressions of a 3D layer in line 1, the rest (of a lot of set expressions) seems to work fine. After clicking the orange "error" messages, it turns out it all just works.

 

So, just kind of annoying :} Hope you can check it out, thx, Jochem

 

 

var scaZ = comp("an_existing_comp_name").layer("an_existing_layer_name")("ADBE Transform Group")("ADBE Scale")[2];
if (scaZ == 100){
   100;
}else{
   0};

 

 

This topic has been closed for replies.

1 reply

Jochem.dk
Jochem.dkAuthor
Participating Frequently
October 20, 2022

Hi, just tried the code below at the end of my jsx file. This seems to work - FYI..

 

The issue might be that the names within the expressions are set before the layer exists.. In AE 22/23(non-beta) this works and automatically catches up once the layers are generated within the same jsx file (some lines of code later..)

// for the beta version of V23.1..
app.project.autoFixExpressions("scaZ","someBetaThing123");
app.project.autoFixExpressions("someBetaThing123","scaZ");