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
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
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>
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
Copy link to clipboard
Copied
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