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
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
...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.
Copy link to clipboard
Copied
Thanks for the answer
Do you know which javascript i should use for ?
Copy link to clipboard
Copied
yes, use the 4 document class methods mentioned in message 1.
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
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.
Copy link to clipboard
Copied
I did what you just say and when i execut the swapColors.jsfl
This message pop up 😕
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?
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
I moved in the file
And I still can't see the shortcut
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
Copy link to clipboard
Copied
I have no "Commands" in "Configuration"
Copy link to clipboard
Copied
you're in the wrong directory.
go back to
and show a screenshot of the sub-directories.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
now click on Utilsateurs, then your user name etc
if you have trouble, attach a screenshot showing the path and folders where you have difficulty.
Copy link to clipboard
Copied
That's it
I found the good way x)
THANKS A LOT ;-;
I see the Shortcut
Copy link to clipboard
Copied
you're welcome.