Scripting Essential Properties text values
Hi all,
~ 2 years ago i wrote a script for AE which was accessing any property in the EP group which had a text value and then it woudl do something to it. I just found out, this part of my script stopped working and it it doing nothing at the moment.
The old working solution was cycling like this:
for (var m = 1; m <= theLayer.property("ADBE Layer Overrides").numProperties; m++) {
Text = theLayer.property("ADBE Layer Overrides").property(m).value.text;
do something...}
Now the Text returns nothing.
theLayer.property("ADBE Layer Overrides").property(m).value returns 565 Error Object of type TextDocument found where a Number Array or Property needed. Which tells me there is a TextDocument object there. TextDocument object should have a property("Source Text") and I should be able to get its value through property("Source Text").value.
So I try theLayer.property("ADBE Layer Overrides").property(m).property("Source Text").value; But that again gets me an error 565 Function the Layer.property().property().property is undefined. And at this point I am lost.
When I use GimmePropPath.jsx script for the selected property it returns:
app.project.item(4).layer("Test").property("ADBE Layer Overrides").property("ADBE EP Text Document")
When I google search "ADBE EP Text Document" it returns literally 0 results.
When I look into a scripting guide, there is nothing on it.
TL, DR Does anyone knows how i can get to the text values of EP properties through scripting please? Or point me in a direction where there is a documentation about it?
