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.

Known Participant
July 12, 2021

Im not sure if i follow you but we need the TextDocument for further operation

 

isPointText = !!textDocument && !textDocument.boxText;

 

whats wrong with this

http://docs.aenhancers.com/other/textdocument/

 

 

 


Same exact issue here.

Would be good if AE scripting would let us know when text-editing is taking place, so that we will pause our loops...