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

JS Scipt... unable to add Ambient Occlusion channel ... possible bug in JS API?

New Here ,
Jul 04, 2023 Jul 04, 2023

Nearly finished an import/export plugin.
I need to add 4 channels to the default ones when creating a new project.

They all work... except ambient occusion. . Found the keys are not case sensitive. I can add "Ambient Occlusion" channel manually but need it in the script.

 

Hoek67_0-1688508369998.png

Even though the error coses says maybe it is already added, it not as I'm then able to manually add it.
Seems like a possible bug.

 

PS - Also tried AMBIENT_OCCLUSION

Bug Unresolved
TOPICS
Bugs & Crashes , Discussion , Import & Export , Scripting
72
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

correct answers 1 Correct answer

New Here , Jul 04, 2023 Jul 04, 2023

SOLUTION (found it)

"AmbientOcclusion" with no spaces.

Translate
2 Comments
New Here ,
Jul 04, 2023 Jul 04, 2023

NOTE - also tried "ambient occlusion" (was 1st option before trying every other combo I could think of)

Translate
Report
New Here ,
Jul 04, 2023 Jul 04, 2023
LATEST

SOLUTION (found it)

"AmbientOcclusion" with no spaces.

Translate
Report