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

Need help with ExtendScript's ExternalObject integration.

Explorer ,
Apr 12, 2024 Apr 12, 2024

Copy link to clipboard

Copied

I've been working with the SampleLib example (https://github.com/Adobe-CEP/CEP-Resources/blob/master/ExtendScript-Toolkit/Samples/cpp/source/sampl...) and I think I've got the basics figured out - I can fetch properties and call methods. What I don't understand, and am having a difficult time finding, is any information for handling nested objects.

Here's an example of what I'm trying to work with:

class NestedClass {

TaggedData c;

public:

    TaggedData getC(){return c.data.intval;};

    NestedClass(TaggedData _c){c = _c;};

};

 

class MyClass {

public:

    TaggedData a;

    TaggedData b;

TaggedData nClass;

    MyClass(TaggedData _a, TaggedData _b){

        a = _a;

        b = _b;

    };

    ~MyClass(){};

    int getSum(){

        return a.data.intval + b.data.intval;

    }

    int getNestedClassValue(){

        return nClass.getC();

    }

};

I can't seem to initialize nClass properly. 

Any help or pointers to where there's a good example would be greatly appreciated.

TOPICS
Error or problem , How to , SDK

Views

261

Translate

Translate

Report

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

Adobe Employee , Apr 15, 2024 Apr 15, 2024

I don't know of any documentation pertaining to the internal details of the external libraries which have been loaded. 


Votes

Translate

Translate
Adobe Employee ,
Apr 15, 2024 Apr 15, 2024

Copy link to clipboard

Copied

LATEST

I don't know of any documentation pertaining to the internal details of the external libraries which have been loaded. 


Votes

Translate

Translate

Report

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