Jump to content

Archived

This topic is now archived and is closed to further replies.

onehugeeye

Affecting Groups Of Clones

Recommended Posts

I think your problem on recreating the xpresso from Hrvoje is due to that he made his cloner setup editable

in order to get to the names of the clones. Which helps to solve the problem but gives up flexibility in process.

Here's a setup which is slightly complicated in concept but procedural all the way:

- Set your Cloner to "Sort" instead of Random, now you only will see the first clone in the viewport,

press F2 in order to go to the top view so you can see the changes of weight we will do in the next step,

go to transform tab and set Display to Weight.

- Create a Shader Effector, go to Shading Tab, create a Noise Shader, set contrast 75%, then put the

Noise Shader inside a Posterizer with 3 Levels and Filter Width to 0%. Go to Paramater Tab, set Weight

Transform and Modify Clone to 100%. Now you should see all three objects again and also see that we

have now 3 different weights applied to the Clones which we will utilize inside xpresso to write into a

MoGraph Selection Tag. So create a Mograph Selection Tag and a Xpresso Tag and create the following

setup seen in the attached image.

- Now you should have one of the objects written as a Selection into the Mograph Selection Tag

and you can use it in another effector.

See attached scenefile for reference.

SelectByWeight01.c4d

post-50487-0-88782800-1338587588_thumb.p

Share this post


Link to post
Share on other sites

Cloner is not editable - I am just iterating through cloner hierarchy ;)

Cheers


Free C4D trainings from MAXON professional on our youtube channel

 

https://www.youtube.com/c4dcafe

Share this post


Link to post
Share on other sites

Hrvoje, would you mind showing your scene,

because I don't understand your setup. Right

now it seems as if your are iterating through

an hierarchy with only 3 objects which doesn't make

sense to me.

Share this post


Link to post
Share on other sites

The file is on my home machine - I can send it on Monday since I don't have Cinema installed on notebook :signthankspin:

Setup is quite simple - I use cloner as starting point for iteration through hierarchy and I compare the names with static string. That way he can create "exclusion" based on the string name for any object under the cloner and get output value for enable/disable, hiding for object node that is being feed with hierarchy.

Setup can be expanded into "quasi" type effector which would work with clones based on name, color or other property or, similar to your setup where one would feed MoSelection.

Cheers


Free C4D trainings from MAXON professional on our youtube channel

 

https://www.youtube.com/c4dcafe

Share this post


Link to post
Share on other sites
  • Topic Author
  • Derya, that's very clever.

    When I saw that you used a Mograph selection I thought that this was not what I was after, until I modified the noise seed on the shader and realised that the selection tag was being updated automatically.

    The magic is in the Xpresso.

    Thank you so much! (To all of you)

    Share this post


    Link to post
    Share on other sites
  • Topic Author
  • Derya, what should I modify if I want to select the other weights?

    Is it the value in the compare node?

    Share this post


    Link to post
    Share on other sites

    Exactly, you just change the value in the compare node, also try out other compare modes to get to the result your after.

    If you want to adopt to 7 cloned objects for example, just change the Posterizer Levels to 7.

    Share this post


    Link to post
    Share on other sites
  • Topic Author
  • Genius! I just spotted that, I duplicated the xpresso setup with a new compare for values below 0.25 and modified the green... trying to work out how to get to the blue ones... is compare, the right node to detect a range (between 0.25 and 0.75) ?

    I'm guessing I either need another node or to combine the compare it with another one

    Share this post


    Link to post
    Share on other sites
  • Topic Author
  • I tried this way which felt right but I'm not getting to the blue ones yet.

    I'm probably using the compare node wrong. right?

    SelectByWeight02.c4d.zip

    Share this post


    Link to post
    Share on other sites

    You put there two compare nodes, which isn't needed.

    Here's a file where I put a Userdata on the Cloner called "Treshhold"

    connected to the compare input port.

    Just slide it and it picks one of the groups.

    The Shader Effector puts out three weights, which results

    in the following weight values 0, 0.5 and 1.

    By comparing exactly to these values you get your MoSelection :-)

    Of course this will change as soon as you introduce more groups.

    Hrvoje, we are still waiting for your name comparison setup, I am curious :-)

    SelectByWeight03.c4d

    Share this post


    Link to post
    Share on other sites

    oops almost forgot :)

    by_name.zip

    Cheers


    Free C4D trainings from MAXON professional on our youtube channel

     

    https://www.youtube.com/c4dcafe

    Share this post


    Link to post
    Share on other sites
  • Topic Author
  • Derya, that is scary clever, thank you so much!

    I might study this file and see if I can work out how to tweak my setup. I was hoping to target each group independently to do different things.

    Cheers!

    I'll make sure to post here what comes out of all this massive help you've all given me.

    And I hope the tutorials I purchased off Hrvoje will allow me to work the kind of magic you guys do!

    :)

    Share this post


    Link to post
    Share on other sites
    Guest
    This topic is now closed to further replies.

    • Recently Browsing   0 members

      No registered users viewing this page.

    ×
    ×
    • Create New...