Copy link to clipboard
Copied
Is there any available scripting inteface in adobe Animate.
Can I via a hostscript.jsx file get animate, to create/open and save dokuments/files in different formats?
It does not seem to work the same way as it does in the other CC programs. What works in Illustator/InDesign och Photoshop does not work in
Animate.
/ regards
Pontus Hulin
Animate has JSFL, which I imagine is similar to JSX. What sort of operation would you imagine doing? If you take any image into Photoshop you can obviously save it out in many formats, and it will look more or less the same. Adobe Animate can create entire interactive experiences in at least three different code libraries, and those libraries are not identical. It would usually take significant rewriting to make a different format version of the interactive application.
Copy link to clipboard
Copied
Moving to the Animate forum
Copy link to clipboard
Copied
Animate has JSFL, which I imagine is similar to JSX. What sort of operation would you imagine doing? If you take any image into Photoshop you can obviously save it out in many formats, and it will look more or less the same. Adobe Animate can create entire interactive experiences in at least three different code libraries, and those libraries are not identical. It would usually take significant rewriting to make a different format version of the interactive application.
Copy link to clipboard
Copied
Where can I find documentation for jsfl and animate?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Hello
When I try to extract the metadata from the document i get the following error ( I translated it from swedish):
JS-API:t getMetadata has been removed
var metadata = an.getDocumentDOM().getMetadata();
Copy link to clipboard
Copied
I just tested your code in Canvas, AS3, and WebGL documents, and it worked fine. Well, it returned a blank string because I hadn't set any metadata. But it did work.
Why are you trying to use getMetadata?
Copy link to clipboard
Copied
Sorry about the late reply.
I would like to store and be able to access our systems id number for the document in the metadata of the project.
Regards
/ Pontus
Copy link to clipboard
Copied
Okay. So where is this number stored?
Copy link to clipboard
Copied
I ended up using:
fl.getDocumentDOM().addDataToDocument("mydata", "string", myid);
and
fl.getDocumentDOM().getDataFromDocument("mydata");
Works for me!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now