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

Change Name from the Library

New Here ,
Mar 06, 2019 Mar 06, 2019

I want to change from "PonyTemplate" to "TemplatePony". Is there a faster way to rename it instead of rename those one by one?j1.jpg

3.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

Community Expert , Mar 06, 2019 Mar 06, 2019

Hi.

You can use JSFL.

https://help.adobe.com/archive/en_US/flash/cs5/flash_cs5_extending.pdf

A suggestion (you have to select the items in the Library):

var doc = fl.getDocumentDOM();

var lib = doc.library;

lib.getSelectedItems().forEach(function(item)

{

    item.name = item.name.replace("PonnyTemplate", "TemplatePonny");

});

JSFL script Replace Library Items Names download:

animate_cc_jsfl_replace_library_items_names.zip - Google Drive

To use the script, drag and drop it over the Animate CC IDE or double-

...
Translate
Community Expert ,
Mar 06, 2019 Mar 06, 2019

Hi.

You can use JSFL.

https://help.adobe.com/archive/en_US/flash/cs5/flash_cs5_extending.pdf

A suggestion (you have to select the items in the Library):

var doc = fl.getDocumentDOM();

var lib = doc.library;

lib.getSelectedItems().forEach(function(item)

{

    item.name = item.name.replace("PonnyTemplate", "TemplatePonny");

});

JSFL script Replace Library Items Names download:

animate_cc_jsfl_replace_library_items_names.zip - Google Drive

To use the script, drag and drop it over the Animate CC IDE or double-click it or run from Commands > Run Command....

Regards,

JC

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, 2019 Mar 06, 2019

Did you actually put a Unicode arrow glyph in the names of all those symbols?

You know you can create folders in the library, right?

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
New Here ,
Mar 06, 2019 Mar 06, 2019

I can create folders, but I want to change some files that I had in my library instead of rename those one by one.

As for the arrow, I used the line tool just for example.

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, 2019 Mar 06, 2019
LATEST

ramseybrony17  wrote

I can create folders, but I want to change some files that I had in my library instead of rename those one by one.

As for the arrow, I used the line tool just for example.

You have managed to misunderstand everything I said.

I mentioned folders because it seems like it would be a lot easier to create a single folder named "TemplatePony" and put your assets in that, instead of prefixing dozens of symbols with the same text. That's why folders exist.

The "arrow" I mentioned was NOT the drawn arrow in your screenshot (wait, that isn't a screenshot... you actually took a cell phone picture of your screen?), but the arrow characters in your symbol names. You know, these: â–¶â–¶â–¶â–¶â–¶â–¶â–¶â–¶â–¶â–¶â–¶. Having non-textual characters in symbol names just seems begging for trouble.

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
Valorous Hero ,
Mar 06, 2019 Mar 06, 2019

LB Rename and LB Enumeration from EDAP Tools do just that - batch renaming of library items.

LB Rename | electric dog :: flanimate power tools

LB Enumeration | electric dog :: flanimate power tools

Nick - Character Designer and Animator, Flash user since 1998
Member of the Flanimate Power Tools team - extensions for character animation
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