31 posts
  • Exclusive Author
  • Has been a member for 0-1 years
CookTorr says

Is there a tool in PS to replace every single element which has the same color with another color. I always select by hand the shape layers I want to change the color of and then modify the fill color, but I was wondering if there is a quicker way, like ctrl + u for rasterized layers.

349 posts
  • Bought between 100 and 499 items
  • Has been a member for 5-6 years
  • United Kingdom
kops says

image/adjustments/replace colour

31 posts
  • Exclusive Author
  • Has been a member for 0-1 years
CookTorr says

That doesn’t work with shape layers. I was talking about something like this:

if ( shape_layer_color == “red” ) { change_shape_layer_color_to(‘green’); }

And make this code loop through every shape layer in the psd file.

I’m having hard time getting myself understood these days :D

Is there a tool that does this? ^^

1079 posts
  • Forum Superstar
  • Most Wanted Bounty Winner
  • Envato Studio (Microlancer) Beta Tester
  • Author had a Free File of the Month
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
  • Europe
  • Has been a member for 3-4 years
  • Exclusive Author
+1 more
Smartik says

if ( shape_layer_color == “red” ) { change_shape_layer_color_to(‘green’); }

Hehe, dreaming :D Too good to be real. I don’t know maybe something like this is possible but even if so, I don’t think it will be that easy. PS is a tool for design not for coding. ;)

31 posts
  • Exclusive Author
  • Has been a member for 0-1 years
CookTorr says

Yeah, yeah, i got it. :D I wrote the ‘code’ because I didn’t know how to explain the tool that I’m looking for.

Anyway, do you think it’s more reasonable to write the html + css code and then make the changes? I think it’s easier to make changes to the design if it’s already in code format.

What do you think? What method do you prefer?

1079 posts
  • Forum Superstar
  • Most Wanted Bounty Winner
  • Envato Studio (Microlancer) Beta Tester
  • Author had a Free File of the Month
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
  • Europe
  • Has been a member for 3-4 years
  • Exclusive Author
+1 more
Smartik says

Yeah, yeah, i got it. :D I wrote the ‘code’ because I didn’t know how to explain the tool that I’m looking for.

Anyway, do you think it’s more reasonable to write the html + css code and then make the changes? I think it’s easier to make changes to the design if it’s already in code format.

What do you think? What method do you prefer?

I prefer to create everything using only the code, CSS3 and HTML is all I need. Photoshop I use only to create icons, presentation images and only for this. It’s a long time since I don’t use it for design.

Using LESS to pre-process the CSS you can define varibles and then manipulate them in your code. For example to illustrate your need I can do something like this;
@base_color: #E74C3C;

a{
    color: @base_color;
}
div{
    color: darken(@base_color, 15%);
}
span{
    color: desaturate(@base_color, 10%);
}
Output:
a {
  color: #e74c3c;
}
div {
  color: #bf2718;
}
span {
  color: #dc5547;
}
So, I need to change only the variable value and everything else will be processed automatically. :)
31 posts
  • Exclusive Author
  • Has been a member for 0-1 years
CookTorr says

Hey, thanks for the tips. I haven’t really used LESS so far. Maybe it’s time for me to learn something new

138 posts
  • Exclusive Author
  • Has been a member for 3-4 years
  • Kosovo
  • Sold between 1 and 100 dollars
salihveseli says

Actually there’s a plugin, still in Beta version. First you should create swatches and this plugin allows you to connect element with that swatch color, you can connect lots of elements within the PSD file and later, in order to change the color all what you have to do it’s to change that color in swatches.

Right now can’t find it, it must be somewhere in my tweets. I’ll let you know when I find it.

1079 posts
  • Forum Superstar
  • Most Wanted Bounty Winner
  • Envato Studio (Microlancer) Beta Tester
  • Author had a Free File of the Month
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
  • Europe
  • Has been a member for 3-4 years
  • Exclusive Author
+1 more
Smartik says

@salihveseli, uhh almost forgot about it. I think this is: http://csshat.com/

Haven’t tried it, but I don’t think that exists a software that can write better code than an human. :)

367 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Most Wanted Bounty Winner
  • Europe
  • Referred between 50 and 99 users
  • Exclusive Author
  • Bought between 10 and 49 items
+1 more
pixelgrade says

There is an extension called PRISMA (still in beta) that seems to do the job pretty well for me: http://www.codeadventure.com/

-George

by
by
by
by
by
by