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

Expression errors: Project created on a Mac and now opened on Windows

New Here ,
Jan 30, 2023 Jan 30, 2023

I have a 21 expression errors in my file with one of the following descriptions:

  • "Bad argument: index out of range"
  • "Object of type Group found where a number, array or property is needed"

 

I tried to change the "Expressions Engine" but that didn't help. The file with the extensions was created on a Mac and I am trying to edit in on a Windows Computer. Maybe that could be an issue. Moreover "thisComp.layer" is used in the file which I think could cause issues as well. 

 

What can I do to solve this? When the file is opened on a Mac it works.

TOPICS
Error or problem , Expressions
796
Translate
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 ,
Jan 30, 2023 Jan 30, 2023

This looks like the whole thing was created using some script or panel and it created a pseudo effect. If that's the case, then of course the index at the end won't be correct. You will have to install the pseudo effect preset or fix the expression. The index is always 1 since expression controls are always singular.

 

Mylenium 

Translate
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 Expert ,
Jan 30, 2023 Jan 30, 2023

It would probably help to see a screen shot of the Effect Controls panel for layer CONTROL PANEL.

Translate
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
New Here ,
Jan 30, 2023 Jan 30, 2023

Here is a screenshot.

Translate
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 Expert ,
Jan 30, 2023 Jan 30, 2023
LATEST

It looks like it's trying to access the Effect Opacity Compositing Option, but I don't think you can do it that way, with (3). I think this would work, if that's really what it's after:

thisComp.layer("CONTROL PANEL").effect("Graphic Elements - Color").compositingOption.effectOpacity

 

Translate
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