Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

textProp.setValue() unbearably slow for larger strings

$
0
0

Hello everyone,

 

I've got an annoying problem. I want to set the text on a text layer like you would normally through a script. Usually, this is fast enough but let's say I wanted to set a large piece of text

to a paragraph box like so:

 

    var s = "some long text";
    var td = layer.property("Source Text").value;    
    td.text = s;    
    layer.property("Source Text").setValue(td);

If the text is too long, say 300+ characters, it takes forever to set the value. I thought that this is maybe a general problem with After Effects, but this doesnt happen if I copy and paste the text into the box through the UI. I tried running the script with the -noui arg but it made a negligible difference.

 

Any scripting wizard out there that can help me understand why this is happening?

 

Thanks


Viewing all articles
Browse latest Browse all 2143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>