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

Changing Foreground Fill Shortcut

Explorer ,
Sep 09, 2020 Sep 09, 2020

Copy link to clipboard

Copied

I'm trying to change the shortcut for filling a layer with the foreground color from 'alt + backspace' to 'ctrl + F' and I'm having trouble finding where that shortcut is in the Keyboard Shortcuts panel. 

 

I've been able to link 'ctrl + F' to the Edit > Fill function, which is probably the second best option, but it would be nice if I could simply hit 'ctrl + F' and have the layer be filled without having to press Enter as well. 

 

Thanks in advance! 

Views

162

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
Adobe
Community Expert ,
Sep 09, 2020 Sep 09, 2020

Copy link to clipboard

Copied

Simply record an action fill foreground color and set a f key for the action,

 

Now if you add a little script step to the action you have a random color fill key.

app.foregroundColor = randomHSB(0, 360);

/**
* returns a random HSB color that has some brightness & saturation
* @returns a SolidColor 
* 
*/
function randomHSB(hmin, hmax){
    colorobj = new SolidColor()
    colorobj.hsb.hue = getRndInteger(hmin, hmax);
    colorobj.hsb.saturation = getRndInteger(10, 100);
    colorobj.hsb.brightness = getRndInteger(30, 100); 
    return colorobj;
};


/**
* @ returns a random number between min and max
* 
*/
function getRndInteger(min, max) {
    return Math.floor(Math.random() * (max - min ) ) + min;
}; 	

.

 

JJMack

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
Explorer ,
Sep 09, 2020 Sep 09, 2020

Copy link to clipboard

Copied

LATEST

Great! Thank you for the help!

 

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