Skip to main content
Kuprikki
Participating Frequently
Oct 31, 2020 5:30 PM UTC
Answered

Scripting: masterProperty issue

Error message:

Unable to execute script at line 20. Function theComp.layer().masterProperty is undefined.

 

That very same script runs on AE 2020 without any issues.

The code adds a premade comp to a timeline and then uses a csv to bring in some text to a placeholder. The that master property is created by another script, which runs without errors. It uses addToMotionGraphicsTempAs to create a master property for the text.

 

-Mika

This topic is closed to new replies. Start a new post to keep the conversation going.
JohnColombo17100380
JohnColombo17100380Correct answer
Community Manager
Nov 2, 2020 11:55 PM UTC

Hi Kuprikki,

Thank you for reporting this bug. Are you experiencing this error with your own script or with a script from someone else? If the script is your own, the workaround at the moment is to use "comp.layer().essentialProperty" instead of "comp.layer().masterProperty" when running a script in the latest Beta versions of After Effects.

 

Recently, there have been some changes to make the terms & language used in After Effects' UI more equitable. As part of those changes, Master Properties have been renamed to Essential Properties ( created using the Essential Graphics panel. ) This work is ongoing and the issue you've reported is a case which is not yet automatically referencing the correct scripting method `.essentialProperty` when `.masterProperty` is called. We are looking to get this fixed as soon as possible.

 

Thank you again for reporting this issue. If you are experiencing this with a script that you are not able to edit, please direct the developer of the script to this post.

- John, After Effects Engineering Team

7 replies

DaciaSaenz
Inspiring
Nov 4, 2020 6:24 PM UTC

Hi @Kuprikki, 

I'm currently testing a fix for this bug, and am curious if you would be open to sharing your script with me?

 

Thanks so much,

Dacia

Translate
- Dacia Saenz, AE & PR Engineering Teams
Kuprikki
KuprikkiAuthor
Participating Frequently
Nov 4, 2020 9:23 PM UTC

Hi Dacia, 

I need to translate it a little, might be a bit difficult to keep up with Finnish variables, functions etc. But after that clean up,  why not..

 

-Mika

Translate
DaciaSaenz
Inspiring
Nov 5, 2020 12:44 AM UTC

You rock, Mika!! Thank you... and just to be clear, I would love a version of your script with the references to "comp.layer().masterProperty" please 🙂 

 

Cheers,

Dacia

Translate
- Dacia Saenz, AE & PR Engineering Teams
JohnColombo17100380
Community Manager
JohnColombo17100380Community ManagerCorrect answer
Community Manager
Nov 2, 2020 11:55 PM UTC

Hi Kuprikki,

Thank you for reporting this bug. Are you experiencing this error with your own script or with a script from someone else? If the script is your own, the workaround at the moment is to use "comp.layer().essentialProperty" instead of "comp.layer().masterProperty" when running a script in the latest Beta versions of After Effects.

 

Recently, there have been some changes to make the terms & language used in After Effects' UI more equitable. As part of those changes, Master Properties have been renamed to Essential Properties ( created using the Essential Graphics panel. ) This work is ongoing and the issue you've reported is a case which is not yet automatically referencing the correct scripting method `.essentialProperty` when `.masterProperty` is called. We are looking to get this fixed as soon as possible.

 

Thank you again for reporting this issue. If you are experiencing this with a script that you are not able to edit, please direct the developer of the script to this post.

- John, After Effects Engineering Team

Translate
Kuprikki
KuprikkiAuthor
Participating Frequently
Nov 3, 2020 5:22 AM UTC

Hi John,

thank you, that did the trick. The script is mine, I did it around a year ago. Made the change, and now it runs as expected.

 

-Mika aka Kuprikki

Translate