Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Without any idea about your code nobody can tell you anything.
Mylenium
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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/
Copy link to clipboard
Copied
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...