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

Make SDK talk to JavaScript

Explorer ,
Jul 31, 2018 Jul 31, 2018

Copy link to clipboard

Copied

Hi Guys,

I Know that's it's possible to execute JavaScript Code with the SDK.

BUT, I want to pass the result of PF_PathGetSegLength (Or any other thing) so i can use it in my JavaScript code, to cover for missing features.

Any suggestions?

Best,

Lior

TOPICS
SDK

Views

507

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

Explorer , Feb 21, 2019 Feb 21, 2019

if it interests anyone - here's the solution:

its called: "Integrating External Libraries"

u can read about it in the JavaScript tools guide here:

http://estk.aenhancers.com/7%20-%20Integrating%20External%20Libraries/index.html

Votes

Translate

Translate
Community Expert ,
Aug 01, 2018 Aug 01, 2018

Copy link to clipboard

Copied

int numSegments = 8;

char script[1024];

sprintf(script, "alert('%i');", numSegments);

On Wed, Aug 1, 2018 at 12:33 AM, liors17841744 <forums_noreply@adobe.com>

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
Explorer ,
Aug 01, 2018 Aug 01, 2018

Copy link to clipboard

Copied

hi shachar, thanks for the response. I meant from the javascript side.

for example:

script.js

======

function getSegmentLength(shapeObj) {

   var segmentLength = ??SDK??

  return segmentLength;

}

Maybe build an AEGP that updates controllers with the info is the solution?

I should change the title to make Javascript Talk to SDK

thanks

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
Explorer ,
Feb 21, 2019 Feb 21, 2019

Copy link to clipboard

Copied

LATEST

if it interests anyone - here's the solution:

its called: "Integrating External Libraries"

u can read about it in the JavaScript tools guide here:

http://estk.aenhancers.com/7%20-%20Integrating%20External%20Libraries/index.html

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