Skip to main content
Mateo666
Known Participant
July 30, 2020
Question

Error: Having to focus on ourselves (76:: 59)

  • July 30, 2020
  • 1 reply
  • 4191 views

We are building an extension for after effect and at some point we are polling a text layer SourceText property.

If we click in the text layer while reading the SourceText property we get this error.

 

 

Is there a way of preventing this ?

Or is there a way of knowing when the focus is this layer by any events ?

 

Any help is welcomed 

Thanks

mat

 

 

This topic has been closed for replies.

1 reply

Mylenium
Legend
July 31, 2020

Without any idea about your code nobody can tell you anything.

 

Mylenium

Mateo666
Mateo666Author
Known Participant
July 31, 2020

if you call this in jsx scripting (we calling a jsx function every second executing this call)

 

let textDocument = layer.property("Source Text").value as TextDocument;

 

while the type tool is selected and you click in the text layer tou will get the popup.

 

 

 

If we remove this call then the error goes away

Hope this help.

Mylenium
Legend
July 31, 2020

Why would you even want to convert a value into an object? That makes no sense to me. You need to use string operations and such and append the data to a text file, which seems to be what you are actually looking for.

 

Mylenium