8 Replies Latest reply on Aug 17, 2017 7:08 AM by JoãoCésar

    Animate CC doesn't save changes made by a .jsfl script

    JoãoCésar Adobe Community Professional

      Hi!

       

      I wrote a simple .jsfl script to rename multiple Movie Clips in a grid. The script works and the instances are renamed the way I want.

       

      But when I reopen the FLA the changes are gone.

       

      Here is the script:

       

      var selection = fl.getDocumentDOM().selection;
      var i;
      var total = selection.length;
      var count = -1;
      
      selection.reverse();
      
      for (i = 0; i < total; i++)
      {
           if (i % 16 == 0)
           {
                count++;
           }
      
           var xPos = i % 16;
           var yPos = count;
      
           selection[i].name = "tile" + xPos.toString() + "_" + yPos.toString();
      }
      

       

      Can someone tell me what is happening?

       

      Thanks in advance!