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

Raccourcie Permuter les couleurs

New Here ,
Jan 03, 2017 Jan 03, 2017

Copy link to clipboard

Copied

Bonjour,

J'utilise assez souvent Adobe Animate mais malheureusement j'utilise souvent l'outil permuter les couleurs. Mais je n'arrive pas à trouver un raccourcie pour ce bouton. Cela me fait perdre un grand temps de devoir aller cliqué sur ce petit bouton.
Je voudrai savoir si un raccourcie existe

Merci

Views

389

Translate

Translate

Report

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 , Jan 03, 2017 Jan 03, 2017

1. open animate

2. create a new jsfl file

3. copy the following and paste it into your newly created jsfl file:

/// begin copy ////////////////

var stroke = fl.getDocumentDOM().getCustomStroke("toolbar");

var fill = fl.getDocumentDOM().getCustomFill("toolbar");

stroke.color = fill.color;

fill.color = fl.getDocumentDOM().getCustomStroke("toolbar").color;

fl.getDocumentDOM().setCustomFill(fill);

fl.getDocumentDOM().setCustomStroke(stroke);

////// end copy ////////////

4. save the jsfl file as swapColors.jsfl

...

Votes

Translate

Translate
Community Expert ,
Jan 03, 2017 Jan 03, 2017

Copy link to clipboard

Copied

create a jsfl file that swaps the colors (ie, getCustomStroke, getCustomFill, setCustomStroke, setCustomFill)

add the jsfl file to C:\Users\<user name>\AppData\Local\Adobe\Animate CC <your version>\en_US\Configuration\Commands

create a shortcut to your swap colors file.

Votes

Translate

Translate

Report

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 ,
Jan 03, 2017 Jan 03, 2017

Copy link to clipboard

Copied

Thanks for the answer

Do you know which javascript i should use for ?

Votes

Translate

Translate

Report

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
Community Expert ,
Jan 03, 2017 Jan 03, 2017

Copy link to clipboard

Copied

yes, use the 4 document class methods mentioned in message 1.

Votes

Translate

Translate

Report

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 ,
Jan 03, 2017 Jan 03, 2017

Copy link to clipboard

Copied

I don't understand how this work x)

I just want a shortcut who swap the stroke and the fill like this button
2017-01-03_16-19-58.png

Votes

Translate

Translate

Report

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
Community Expert ,
Jan 03, 2017 Jan 03, 2017

Copy link to clipboard

Copied

1. open animate

2. create a new jsfl file

3. copy the following and paste it into your newly created jsfl file:

/// begin copy ////////////////

var stroke = fl.getDocumentDOM().getCustomStroke("toolbar");

var fill = fl.getDocumentDOM().getCustomFill("toolbar");

stroke.color = fill.color;

fill.color = fl.getDocumentDOM().getCustomStroke("toolbar").color;

fl.getDocumentDOM().setCustomFill(fill);

fl.getDocumentDOM().setCustomStroke(stroke);

////// end copy ////////////

4. save the jsfl file as swapColors.jsfl

5. move swapColors to the directory mentioned in message 1.

6. in animate, click edit>shortcuts>commands>swapColors

7. assign a shortcut (eg, ctrl-shift-c unless you already use that shortcut)

8. test your shortcut.

Votes

Translate

Translate

Report

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 ,
Jan 03, 2017 Jan 03, 2017

Copy link to clipboard

Copied

I did what you just say and when i execut the swapColors.jsfl
This message pop up 😕

2017-01-03_16-50-03.png

Votes

Translate

Translate

Report

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
Community Expert ,
Jan 03, 2017 Jan 03, 2017

Copy link to clipboard

Copied

you failed to perform steps 5,6,7 and 8.

once you do those, open a fla or create a new one and use your shortcut.  do you see your file and stroke colors swapping?

Votes

Translate

Translate

Report

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 ,
Jan 03, 2017 Jan 03, 2017

Copy link to clipboard

Copied

I follow all the intructions like you can see in this screeshot and I can't still never find Colorswap in the shortcut menu

I wrote the line
2017-01-03_17-29-13.png

I moved in the file

2017-01-03_17-22-58.png

And I still can't see the shortcut

2017-01-03_17-22-51.png

Votes

Translate

Translate

Report

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
Community Expert ,
Jan 03, 2017 Jan 03, 2017

Copy link to clipboard

Copied

that's not the correct directory.

use, C:\Users\<your user name>\AppData\Local\Adobe\Animate CC <your adobe animate version>\<your language>Configuration\Commands

Votes

Translate

Translate

Report

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 ,
Jan 03, 2017 Jan 03, 2017

Copy link to clipboard

Copied

I have no "Commands" in "Configuration"

2017-01-03_18-03-30.png

Votes

Translate

Translate

Report

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
Community Expert ,
Jan 03, 2017 Jan 03, 2017

Copy link to clipboard

Copied

you're in the wrong directory.

go back to

Screenshot - 1_3_2017 , 9_14_45 AM.png

and show a screenshot of the sub-directories.

Votes

Translate

Translate

Report

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 ,
Jan 03, 2017 Jan 03, 2017

Copy link to clipboard

Copied

2017-01-03_18-20-16.png

Votes

Translate

Translate

Report

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
Community Expert ,
Jan 03, 2017 Jan 03, 2017

Copy link to clipboard

Copied

now click on Utilsateurs, then your user name etc

Screenshot - 1_3_2017 , 9_24_50 AM.png

if you have trouble, attach a screenshot showing the path and folders where you have difficulty.

Votes

Translate

Translate

Report

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 ,
Jan 03, 2017 Jan 03, 2017

Copy link to clipboard

Copied

That's it
I found the good way x)

THANKS A LOT ;-;

I see the Shortcut

Votes

Translate

Translate

Report

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
Community Expert ,
Jan 03, 2017 Jan 03, 2017

Copy link to clipboard

Copied

LATEST

you're welcome.

Votes

Translate

Translate

Report

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