Highlighted

Editing simple text effect through script glitch

New Here ,
Jul 31, 2020

Copy link to clipboard

Copied

Im editing simple text effect through a script when I set value its fine, but when i play the edit it tacks on random symbols and numbers to the back of the text and when I stop the edit and it loads all the way through its my normal text. 

 

I first started through importMgrt but it was taking forever to import 100+ seperate motion graphics (even though they are just text)

 

Not sure what this may be if anyone has thoughts that would be helpful.

 

Thanks,

 

dt

I can reproduce the results you're seeing; it's working that way because the data type of the param containing the text is _not_ a String; it's an Arbitrary param type, which just happens to start with a String. 

 

 

Topics

Effects and Titles, SDK

Views

89

Likes

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

Editing simple text effect through script glitch

New Here ,
Jul 31, 2020

Copy link to clipboard

Copied

Im editing simple text effect through a script when I set value its fine, but when i play the edit it tacks on random symbols and numbers to the back of the text and when I stop the edit and it loads all the way through its my normal text. 

 

I first started through importMgrt but it was taking forever to import 100+ seperate motion graphics (even though they are just text)

 

Not sure what this may be if anyone has thoughts that would be helpful.

 

Thanks,

 

dt

I can reproduce the results you're seeing; it's working that way because the data type of the param containing the text is _not_ a String; it's an Arbitrary param type, which just happens to start with a String. 

 

 

Topics

Effects and Titles, SDK

Views

90

Likes

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
Jul 31, 2020 0
Adobe Employee ,
Aug 03, 2020

Copy link to clipboard

Copied

Can you provide a snippet of ExtendScript that reproduces the behavior you describe?

Likes

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
Reply
Loading...
Aug 03, 2020 0
New Here ,
Aug 03, 2020

Copy link to clipboard

Copied

for (var a = 0;a < clipitem.components.numItems;a++){
    if( clipitem.components[a].displayName == "Simple Text"){

        clipitem.components[a].properties[5].setValue('test');

 

 

i can put any kind of string in that setValue and i get 'test$#^&#%^$#'  random ascii symbols whenever i play it and at rest it will go back to 'test'

 

Likes

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
Reply
Loading...
Aug 03, 2020 0
Adobe Employee ,
Aug 03, 2020

Copy link to clipboard

Copied

To pursue that further, I'll also need the .mogrt in question, and instructions on how to set up the test case. 

PProPanel's .mogrt button behaves correctly, right? 

Likes

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
Reply
Loading...
Aug 03, 2020 0
New Here ,
Aug 03, 2020

Copy link to clipboard

Copied

-I have a clip in my sequence

-I add 'Simple Text effect' from Effects

-Then in my extendscript any clip that has a simple text effect id like to programatically change the text value in that clips effect. 

 

I can change it but it leaves alot of ascii characters and junk while playing the sequence and when i stop the sequence it changes to correct value.

 

Let me know if that helps its not a specific .mogrt to my knowledge just the simple text effect.

Likes

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
Reply
Loading...
Aug 03, 2020 0
Adobe Employee ,
Aug 03, 2020

Copy link to clipboard

Copied

I can reproduce the results you're seeing; it's working that way because the data type of the param containing the text is _not_ a String; it's an Arbitrary param type, which just happens to start with a String. 

 

 

Likes

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
Reply
Loading...
Aug 03, 2020 0
New Here ,
Aug 03, 2020

Copy link to clipboard

Copied

Is there anyway to go about this to acquire desired results?

Likes

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
Reply
Loading...
Aug 03, 2020 0