Kind of pattern selection using the Colorize feature



  • .
    Kind of pattern selection using the Colorize feature
    .
    Part one:
    The Basic steps and a look at the Result
    .
    .
    The Colorize Feature (Menu > Effects > Replace Colors > Colorize)
    offers several options for coloring shapes in different ways.

    It also offers the ability to use your own color palette,
    which offers a possibility you may not have considered before.
    .
    .
    To see what I'm getting at, do the following.

    Create two shapes each with a different color
    and select these two shapes.
    0_1744010724920_two-colors.png

    Open a Palette Panel ( Window > Color Palette )
    and in the Panel Menu select
    ( Create Palette > Create Palette from Selection )

    0_1744010845701_create-from-selection.png
    .
    .
    Name the new Palette "2-colors" and save it.
    Keep the 2-colors Panel open.

    0_1744010926405_two-color-palette.png
    .
    .
    Create a bunch of objects now. Select all of them and apply a color to them,
    any color will be fine.

    0_1744011094069_some-shapes.png
    .
    .
    While the objects are selected, go to the Menu and call the "Colorize" panel.
    (see above how) To call the 2-color Palette in the Colorize Panel click at the
    first icon here and select the palette.

    0_1744011149620_call-the-palette.png
    .
    .
    The objects are now colored with the colors from the palette. You may have
    noticed the order of the colors: As you can see, the colors repeat regularly.

    0_1744011217018_ordered-colors.png
    .
    .
    This is the Point where I will show you the possibilities that arise from this.
    Call up the Magic Wand Tool and select a Shape.

    0_1744011326953_magic wand tool.png
    .
    .
    You'll notice that all objects with the same color have been selected.

    0_1744011385730_color-selected.png
    .
    .
    Using the method described, we are able to created
    a kind of pattern selection.

    Wherever we want to select every second, third or xth shape,
    we can do so using the method described here and creating
    a corresponding color palette for this. Of course, other patterns
    can also be created.
    .
    .
    However, there is still a problem. The coloring of "Colorize" follows
    the order in which the shapes were created. So what do we do if
    the shapes are randomly placed ?

    A solution for this will be shown in the second part.



  • @Subpath Thanks for sharing, looking forward to the next part!



  • @monsterfox

    your welcome,
    already working on it 🙂



  • .
    Part two:
    How to create a desired selection order for coloring
    with random placed shapes
    .
    .
    In the first Part we saw that coloring shapes via Colorize
    open a way for a kind of pattern selection. But what
    could we do if Shapes are randomly placed.
    .
    .
    As far as I know, the order of the colors applied with "Colorize"
    corresponds to the order in which objects are created. So, how
    can you color shapes in the desired order if they are randomly
    distributed?
    .
    .
    The surprising solution: Use the Shape Builder tool.
    .
    In my experiments, I found that the Shape Builder is able to redetermining
    the selection order of shapes and coloring with Colorize will follow that
    new order.

    0_1744370380166_shapeBuilder-Tool.png
    .
    .
    Here an Example

    I used Blend to create a gradient from some shapes and arranged them
    in a random order.

    0_1744370178922_random placed.png
    .
    .
    Then I took the Shape Builder Tool, selected any color and selected all
    objects with the tool in one direction

    0_1744370250016_ShapeBuilder selection.png
    .
    .
    Finally I select the shapes and color them using the "Colorize" Feature.
    You can see all shapes are colored in the order of the palette.

    0_1744370295813_Gradient follow shapes.png
    .
    .
    Here a video, which shows the steps
    .
    .
    So with the help of the Shape Builder Tool you can control which direction
    the coloring with Colorize should follow and create any pattern selection
    by following the steps descriped in Part one.
    .
    .
    One Final Note:
    I wrote, that sometimes the coloring with Colorize doesn't
    follow the selection accordingly.

    This seems be solved now, i found the solution.
    The reason for this has to do with using the Magic Wand
    Tool to select the shapes to be colored with Colorize.

    As you using the Magic Wand tool, you may think that you
    can select/pick any shape with the according color, but this
    doesnt work in our case.

    Select the first shape you selected with the Shape Builder
    also with the Magic Wand tool. This way, the color scheme
    starts in the correct place. Then everything will work as
    expected.

    Here a Video about this



  • @Subpath Finally got you. This method is quite special. I’ll try it out later. Thanks for the update.



  • @monsterfox

    Yes, it's a bit special.

    Although I find that color selection with a corresponding
    color palette offers a lot of possibilities. You just need to
    create a suitable color palette and color the shapes
    accordingly. To obtain a specific selection pattern.

    Using the shape builder tool for a custom color sequence
    is the easiest method I've found. If anyone knows or has
    discovered another way, I'm happy to hear.



  • @Subpath tested this feature today, and it only works on individual objects. It becomes very chaotic when applied to grouped objects.
    @VectorStyler It would be great if grouped objects could be treated as independent ones.1_1744469843843_mmexport1744469824087.png 0_1744469843835_mmexport1744469820884.png



  • @monsterfox

    Well, my method may not be helpful in all cases

    Maybe you could post a sample file, here in this Thread?
    Then I can take a look at it.

    If so, please also include an example of what
    the end result should look like.
    .
    .
    You work, of course with more complex objects than I do.

    If you want to define an object order with the Shape Builder tool,
    the objects shouldn't overlap. But the Shape Builder itself also
    works when objects are grouped.


  • administrators

    @monsterfox said in Kind of pattern selection using the Colorize feature:

    It would be great if grouped objects could be treated as independent ones.

    I will try to find a solution for this.



  • @Subpath 0_1744513960294_2.vstyler Here is the file you requested.



  • @monsterfox

    What do you want to achieve?
    Just coloring that parts?
    Then could you show me a picture of what it should look like?

    Or create some kind of selection pattern?



  • @Subpath The file contains 4 to 5 groups, with both paths and fills in black. I want them to appear as separate, independent shapes and automatically change into 4 to 5 different colors.



  • @monsterfox
    .
    .
    I've been experimenting a bit with the designs in your file.
    .
    .
    Separate filled shapes and outlines

    Filled objects can be separated from outline objects.
    By selecting filled Shapes via.
    Menu > Select > Styling > Filled
    and move them to another Place
    .
    .
    Coloring Shapes

    Coloring your Designs via Colorize makes no sense to me.
    The Designs differ to much, have different number of objects
    and/or the object order is different.

    I developed a way, but I don't know if it will work for you.
    It uses the "Selected Intersecting Shapes" feature to select shapes.
    You could color them then.

    The Video here show the Steps needed

    Once the shapes are colored, you can select them
    with via the Magic Wand Mode for selecting shapes.
    Or via the way i showed in the Video.

    Important!
    The color for the circle is for selection purposes only.
    So this color should not appear in the Design.



  • @Subpath Thank you for sharing. Although this approach doesn't quite fit my workflow, I've picked up some useful tips. My workflow is a bit complex and would take some time to explain—perhaps I'll make a video about it when I get the chance.



  • @monsterfox

    Your welcome.
    A video sounds interesting; I'd also like to learn something new. 🙂
    But no need to rush it; do it whenever it suits you.


  • administrators

    @monsterfox said in Kind of pattern selection using the Colorize feature:

    It would be great if grouped objects could be treated as independent ones.

    I need some examples for this where the selection is chaotic.



  • @VectorStyler

    In my opinion, it might look chaotic, but may not be really chaotic.

    In all my attempts, using Colorize, the fill colors followed the selection
    order of the shapes. I didn't get any different results in my experiments.

    Only the trick with the ShapeBuilder to define a new selection order didn't
    always work. I'll try to record a case if I see it again.

    If you look at the Monsterfox sample file, the designs have different selection
    orders. You can see this if you take a design and track the selection order
    with "Previous" or "Next Selection." This could be the reason why the result
    may look like chaotic / does not look as expected.
    The Designs have also a different Object count.





  • @VectorStyler

    I created a video here in which Colorize doesn't
    follow the selection order.

    Here's the video:

    While experimenting with this again, I noticed an curious behavior:

    I previously selected the shapes with the Magic Wand tool.

    But when I select the same shapes again with the
    Rectangular Selection tool, the coloring works as expected.

    You can see this in this video.



  • @VectorStyler

    I think i got it

    When using the Magic Wand tool to select
    the shapes you want to Colorize

    you have to pick/select the first shape you selected
    with the Shape Builder tool.

    Then everything will work as intended.

    here the Video

    I am fine with this, as it seems logical to me.