CINEVERSITY

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

Random Selection on Cloner

Question & Answers
cloner random effector mg multishader material switch redshift
2
9
1.4k
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.
  • S
    smckenzie last edited by Dr. Sassi Mar 2, 2023, 5:46 AM Feb 28, 2023, 8:58 PM

    When a cloner is made in to a single object, is it possible to have selection tags generated that select random clones?

    I.e., if you have a cloner generating floor planks but you need a random selection to apply different textures to.

    cloner-plank-random-selection.c4d

    1 Reply Last reply Reply Quote
    • Dr. Sassi
      Dr. Sassi last edited by Dr. Sassi Mar 1, 2023, 8:09 PM Mar 1, 2023, 8:09 PM

      Hi smckenzie,

      Thanks for the file.

      The Random Effector is one way to do it. Please note that this effector has a Min/Max setting. For this effect to work, perhaps consider 0% as the minimum, instead of -100%.

      The MoGraph Multi Shader is the way to go here. If your textures are in a folder, you can easily set this up.

      https://help.maxon.net/c4d/2023/en-us/Default.htm#html/XMG_MULTI.html?TocPath=MoGraph%257CShaders%257CMulti%2520Shader%257C_____0

      All the best

      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
      • S
        smckenzie last edited by Mar 2, 2023, 3:19 AM

        That's cool but you can't use a shader in that field, i.e. you can't put a Vray or Redshift material in there.

        1 Reply Last reply Reply Quote
        • S
          smckenzie last edited by Mar 2, 2023, 3:20 AM

          What I was thinking was for a way to pull the id's of each cloner into say a redshift attribute inside the shader which is then used to pick which texture is used on the clone.

          1 Reply Last reply Reply Quote
          • Dr. Sassi
            Dr. Sassi last edited by Dr. Sassi Mar 2, 2023, 5:45 AM Mar 2, 2023, 5:45 AM

            Hi smckenzie,

            The file you have provided showed standard render as a setting, hence the suggestion. You wrote that you would like a "different texture", which is possible.

            When you have a request, please share all the information to get your answer faster. Thank you.

            I do not have a Vray license. So my answer will be with Redshift 3D

            https://stcineversityprod02.blob.core.windows.net/$web/Cineversity_Forum_Support/2023_PROJECTS_DRS/CV4_2023_drs_23_SIcp_11.c4d.zip

            A Userdata Node set to MoGraph Color provides the needed data.

            The idea is to use a Range Mapper to get the Random gray value of the Random Effector into data that is useable here. I took red as the source, which allowed me to use a Shader Switch.

            The Shader Switch is fed with Reference Nodes. Those can take other Redshift Materials and feed those to the input of the Shader Switch.

            Cheers

            Screen Shot 2023-03-01 at 9.16.33 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
            • S
              smckenzie last edited by Mar 2, 2023, 6:54 PM

              Thanks for the suggestion.

              Without a renderer, is there no way to take the clones, collapse them all into a single object and have a random selection baked into selection tags?

              1 Reply Last reply Reply Quote
              • Dr. Sassi
                Dr. Sassi last edited by Dr. Sassi Mar 2, 2023, 7:46 PM Mar 2, 2023, 7:39 PM

                Hi smckenzie,

                I get it (hopefully). You don't want a Single Cloner as a solution; you like to have a group of previous clones. (Made Editable)

                You excluded the render now.

                From Cloner to a single Object.
                Select the Cloner and then the Object Manager> Object> Current State To Object.
                After that, select the Cloner Null and use the Object Manager> Edit>Select Children
                Command click on the Null to deselect.
                And then the Object Manager> Object> Connect and Delete.

                Please have a look here; Materials are based on selections; you can use Standard Materials
                https://stcineversityprod02.blob.core.windows.net/$web/Cineversity_Forum_Support/2023_PROJECTS_DRS/CV4_2023_drs_23_MGwf_11.c4d.zip

                My best wishes for your project

                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
                • S
                  smckenzie last edited by Mar 3, 2023, 1:44 AM

                  This is perfect! Thanks so much, you are literally an Oracle 🙂

                  1 Reply Last reply Reply Quote
                  • Dr. Sassi
                    Dr. Sassi last edited by Mar 3, 2023, 3:58 AM

                    You're very welcome, smckenzie.
                    That is very kind of you.

                    I share whatever I know, and I don't hold back. I need to know what is needed. Sometimes there is no way; sometimes, there are many.

                    Besides, sharing solutions is much more fun than hitting a roadblock.

                    My best wishes

                    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
                    • Referenced by  S smckenzie Feb 12, 2024, 8:19 PM
                    • First post
                      1/9
                      Last post