Forum Replies Created

  • Clara Martin

    June 3, 2024 at 11:48 am in reply to: Attribute keyboard shortcuts for my script

    Thank you for your reply.

    After a lot of research/reflection on my part, the solution you gave is possible but implies for me to create 1 jsx file by keyboard shortcut, I will have to create more than 80 jsx files even though it is much simpler to manage the everything in the same file with functions to avoid redundancy as well as for future maintenance, working on 80 files will take time…

    Is it not possible from the After Effects keyboard shortcuts to call a function in my jsx file?

    Example:

    – Ctrl + 1 launches the function_a() function of my file “my_script.jsx”

    – Ctrl + 2 launches the function_b() function of my file “my_script.jsx”

    thanks in advance 🙂

  • Hello thank you very much,

    the last script with the test() function does exactly what I wanted.

    Thank you very much

  • Hello,

    Yes I have a .jsx file that I use to do what I want.

    For your first question, I have a csv file which contains data, by looping over the child layers and precomp I want to impose certain data on them from the csv file (this part works)

    I’m just having trouble getting the part of finding all the children of a precomp selected from my timeline to work.

    Thank you 🙂

  • So it’s for a script.

    I would like to know if it is possible to know all the children (layers and precomp in the parent precomp etc. as in my example) of a precomp by selecting it in my timeline.

    I want to loop over it (for loop).

    There can be several levels as in my example:

    – A parent precomp who has a child who himself has a child etc.

    Do you think this is possible?

    Thanks in advance 🙂

  • Thank you very much, it works wonderfully 😉

  • So the first solution provided by Hector Vera does not work for the moment.

    No, I do not want to directly import an image into the timeline. I have this image in my present panel project.

    I just want to use it via a script to import it into my timeline 🙂

    Here is what I have:

    – 1 composition already created which is called “comp”

    – My file “my_picture.jpg” in the panel project

    When I do this:

    // alert with comp name works

    alert(comp.name);

    // this does not create an image layer for me even though imageFilePath points to the correct photo on my computer

    var imageFilePath = ‘/Users/clara/Movies/AE/Images/my_picture.jpg’;

    var layer = comp.addLayer(“My Image Layer”);

    var importResults = layer.file.importFile(imageFilePath);

    Thank you in advance both of you 🙂

  • Thank you very much, this is exactly what I wanted 🙂

  • Thank you for your replay.

    Unfortunetely i know it, i want to do it with script. Is it possible ?

    Thank you in advance 🙂

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy