• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Community Beginner ,
Jul 30, 2020 Jul 30, 2020

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.

 

Screen Shot 2020-07-30 at 3.25.52 PM.png

 

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

 

 

TOPICS
Error or problem , Scripting

Views

1.6K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 31, 2020 Jul 31, 2020

Copy link to clipboard

Copied

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

 

Mylenium

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 31, 2020 Jul 31, 2020

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.

 

Screen Shot 2020-07-31 at 10.52.21 AM.pngScreen Shot 2020-07-31 at 10.52.14 AM.png 

 

If we remove this call then the error goes away

Hope this help.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 31, 2020 Jul 31, 2020

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 31, 2020 Jul 31, 2020

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/

 

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 12, 2021 Jul 12, 2021

Copy link to clipboard

Copied

LATEST

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...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines