CINEVERSITY

    Maxon Logo
    • Login
    • Search
    • Recent
    • Popular
    • Users
    • Groups

    Boolean assign material

    Question & Answers
    c4d cinema 4d vfx motion graphics boole
    2
    4
    337
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bear-way last edited by Dr. Sassi

      Hello everybody!

      I am aiming to build a setup where a boolean operation cuts through a series of clones with different colors.

      I am trying to assign a different color material to each clone by using color user data. However the face of the object that cuts is ignored. It would be great to color each clone and it’s connected boolean face. Hopefully this can be done within one shader whilst staying parametric.

      Would be amazing to get some help!

      Thanks,

      Rein

      https://www.dropbox.com/s/c9xpveqduu06k7l/BooleanCloner.png?dl=0

      1 Reply Last reply Reply Quote
      • Dr. Sassi
        Dr. Sassi last edited by Dr. Sassi

        Hi Rein,

        Thanks for posting this in the new forum as well. I wish I had a project file, not an image.

        This is not a simple task, as the new face introduced to the cubes is from the Sphere, which is a single-color sphere. So we need to prived the color differently.

        Anyway, here are two files, the same setup but slight changes in each, to see if it works.
        https://www.dropbox.com/s/ycvkfdp0ge76dsb/CV4_2023_drs_23_MGcv_01-02.zip?dl=0

        The Boole operation can hit some specific situations when it disappears; please test this before going into production. If so, often, a microscopic position change will fix this.

        Perhaps a flat projection of a color layout and a Shader Effector/Field will also help if you have a different setup.

        All the best!

        Screen Shot 2023-01-25 at 10.36.54 PM.jpg

        Dr. Sassi Sassmannshausen Ph.D.
        Senior Trainer, Maxon Master Trainer, L&D - Strategist
        Cinema 4D mentor since 2004, Member of VES, DCS.

        1 Reply Last reply Reply Quote
        • B
          bear-way last edited by bear-way

          This is perfect! Thanks so much.
          It took me a few minutes to figure out how to change the colours since I haven't started using the new material interface. Very nice, thanks for teaching me something new!
          Good chance we will be able to use this in production.

          1 Reply Last reply Reply Quote
          • Dr. Sassi
            Dr. Sassi last edited by

            Thanks a lot for the feedback, Rein.

            Yes, it is a bit tricky, but I'm glad you got it working for your project.

            My best wishes for the production!

            Dr. Sassi Sassmannshausen Ph.D.
            Senior Trainer, Maxon Master Trainer, L&D - Strategist
            Cinema 4D mentor since 2004, Member of VES, DCS.

            1 Reply Last reply Reply Quote
            • First post
              Last post