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

maybe a bug with $.getenv()

Community Beginner ,
Oct 04, 2021 Oct 04, 2021
ExternalObject.AdobeXMPScript = void 0 === ExternalObject.AdobeXMPScript ? new ExternalObject("lib:AdobeXMPScript") : ExternalObject.AdobeXMPScript;
var xmpData= new XMPMeta(app.project.xmpPacket);
$.setenv(xmpData.getProperty(XMPConst.NS_XMP_MM, "DocumentID").value, []);

alert(
$.getenv(xmpData.getProperty(XMPConst.NS_XMP_MM, "DocumentID").value)
)

 

on Mac it returns "" ,

on Win it returns null

 

IMAGE 2021-10-04 21_38_08.jpgIMAGE 2021-10-04 21_38_21.jpg

Any idea?

TOPICS
Scripting
190
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

Could be a bug with your version of AE. I just tested this and it's working in AE 2022:

 

 

$.setenv('mybar', 'abc');
$.getenv('mybar'); // 'abc'

 

 

Here's some info on those methods: https://extendscript.docsforadobe.dev/extendscript-tools-features/dollar-object.html?highlight=geten...

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