I have an SVG (converted to AI) with red lines, red rectangles (with null stroke colors), blue lines, and blue rectangles (with null stroke colors). I can use Select > Same > Stroke Color to select all of the red lines, or Select > Same > Fill Color to select all of the red rectangles. I'm looking for a way to select ALL of the red lines and the red rectangles, whether that color is defined for the stroke or the fill. A method that can also select all text with a red color attribute would be idea. Thanks!
-
Could you first group objects with the same stroke and then select/group objects with the same fill? I am not sure you could do both at the same time, maybe there is a way to do this with a script. Is there a reason why you cannot do it in 2 steps?– AndrewHJul 8 at 14:17
-
Hi. Welcome to GDSE. Why do you actually want to do this? What is the goal? Are you just trying to change the colours? If so, you could use Edit > Colors > Recolor Artwork.– Billy KerrJul 8 at 14:20
-
I am importing and editing SVGs generated by another application. The red and blue objects are already part of multilayered groups that include both colors. I want to be able to move or modify the red objects across all groups. @AndrewH's two step procedure could work, if I either remember or record how far I move the red lines and then apply the same transformation to the red boxes. Hope that helps.– JoshJul 8 at 14:28
-
In that case, then I think Andrew's suggestion is probably your best bet. Maybe ungroup everything first so there are no groups left, then do a select same fill , group those, then do another select same stroke, and group those, then group both groups as one. Then you can move as a whole.– Billy KerrJul 8 at 14:42
-
2You can make a saved selection instead of a group (using Select -> Save Selection) . Or you can select via script.– joojaaJul 8 at 15:07