Z
Z
zenderyt2018-08-14 17:12:48
JavaScript
zenderyt, 2018-08-14 17:12:48

How to import a project into After Effects using a script?

I am writing a script for Adobe After Effects. Since JS started to learn recently, there were difficulties in writing.
I ask you to help, but I immediately say that I can not understand some easy things.
1st question. I sort of figured out the interface in JS, but I still have problems with the script functionality itself. How to make it so that when you click on a certain button, the script creates a folder in the path specified in the CODE, in this folder a text document, and in the text document writes either YES or NO. And then I read information from it, that is, if YES is written, then we perform operation 1, otherwise operation 2.
2nd question. I tried to search for it on the internet, but I couldn't find it. In the script I have many iconbutton. Each of which has its own icon, which says what it opens. For example, iconbutton1 has an icon with transitions. I need the script to import a pre-prepared project from a folder into the active composition when I double-click on this button.
Thanks in advance, there is little information on the Internet, I decided to ask knowledgeable people)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question