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

Scripting in Adobe Animate CC

Participant ,
Mar 03, 2017 Mar 03, 2017

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

2.2K
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

correct answers 1 Correct answer

LEGEND , Mar 03, 2017 Mar 03, 2017

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.

Translate
Community Expert ,
Mar 03, 2017 Mar 03, 2017

Moving to the Animate forum

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
LEGEND ,
Mar 03, 2017 Mar 03, 2017

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.

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
Participant ,
Mar 06, 2017 Mar 06, 2017

Where can I find documentation for jsfl and animate?

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
LEGEND ,
Mar 06, 2017 Mar 06, 2017
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
Participant ,
Mar 06, 2017 Mar 06, 2017

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();

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
LEGEND ,
Mar 07, 2017 Mar 07, 2017

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?

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
Participant ,
Apr 18, 2017 Apr 18, 2017

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

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
LEGEND ,
Apr 18, 2017 Apr 18, 2017

Okay. So where is this number stored?

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
Participant ,
Jul 11, 2017 Jul 11, 2017
LATEST

I ended up using:

fl.getDocumentDOM().addDataToDocument("mydata", "string", myid);

and

fl.getDocumentDOM().getDataFromDocument("mydata");

Works for me!

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