A new version of Cineversity has been launched. This legacy site and its tutorials will remain accessible for a limited transition period

Visit the New Cineversity
   
 
Sorting Clones in certain Axis
Posted: 01 December 2017 11:26 AM   [ Ignore ]  
Avatar
Total Posts:  19
Joined  2016-04-05

Hello!
I was wondering if there’s anyway to sort cloner objects in the Y, X or Z axis.
Same as what the Voronoi Fracture does, but with regular cloners… is that possible?
See attached my c4d file. I’d like the sphere clones to be sorted in the Y axis.
Any help? thanks!
José

File Attachments
cloner_sort.zip  (File Size: 64KB - Downloads: 98)
Profile
 
 
Posted: 01 December 2017 04:37 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi José,

Thanks for the file, always nice to have that extra information.

I presume that the “Surface” option is your target distribution.

There is no option to sort random clones based on their Y position first, at least not natively. (Edit: Here I was wrong, see post #3/edit) This could be done with an Python script. (Not my scope here, but in short: get the Matrix of each clone with its ID in a list, sort that list based on the P.Y for example, then use the position in the list to request actions.) That would be perhaps a nice entry in the Tutorial Suggestion Forum.

Please have a look at file below:
Scene file
https://www.amazon.com/clouddrive/share/CyZgQRFjARvRIv1dzQ0NkU3TjWGnajJ5GuS2LbLanTX

This works like the Thinking Particle Node PBlurb. It worked like this:  two groups of particles with a random amount of particles, as well as randomly placed, move from surface A to surface B. The “trick” was here have two set ups, and to blend the particles while they are kind of in the middle of their path from A to B. In other words, one group starts invisible, where the other group turns on the end invisible. In the file above, I have not implemented the “blend” to keep it simple. The blend could be done with an gradient in the Alpha channel and the gradient starts with object A and ends with object B (3D linear).

I used the uvw space of the clones here, the v is like a sub Y space, and so I triggered them. Since that would create only a sudden jump of the clones, the Delay Effector smoothes the travel. The Delay Effector is responsible for the duration of the traveling.

All the best

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 01 December 2017 05:03 PM   [ Ignore ]   [ # 2 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

P.S.: Here are two files with the “transition” based on a gradient (…_11.c4d) or with a Plain Effector (…_21.c4d), whereby I prefer the …_21.c4d version.

Scene files:
https://www.amazon.com/clouddrive/share/xq7WiUsV9kdztKbn8FXMasgwXbyU1MsBWpIfF2KOlZi
(One zip file, it contains both)

Of course, to have two Plain Effectors working in sync to create this would be the simplest way. But it needs the Matrix objects, as otherwise the second one would influence the first, vice versa, like a feedback loop.
Scene file:
https://www.amazon.com/clouddrive/share/u9BgN4JJ1nIfDutc3Cci1Vvo6NIoFwGfAqrqJrHctbg
Screen shot, with object set to the sam size, same material and motion blur: (the different color and size was more for the demo)
https://www.amazon.com/clouddrive/share/ss1wdN5uLkz9iphkpCpeXjuWFd1x44QiCF4bw7dASq1

Let me know if you have any questions. I get some problems with a cube, I have to explore this more. IF uvw fails the py value will do, where by the f value needs to match the range.

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 02 December 2017 03:32 PM   [ Ignore ]   [ # 3 ]  
Avatar
Total Posts:  19
Joined  2016-04-05

Hey Dr. Sassi
Thank you very much for your replay. You find a smart way to achieve the effect I was looking for (and I’ve never noticed the powerful of the Formula effector!)
Although it gets weird when using source A and B have different shapes, or are placed in random places along the world coordinates.
I found a way to use the “sort” option by making the cloner objects child of the Vornoi Fracture objects… See attached.
https://www.dropbox.com/s/ny3ueeyo6njk6qo/cloner_sort_0001.zip?dl=0
Having the “sorting” options inside the regular cloner objects would be great too.
Thanks!
José

Profile
 
 
Posted: 02 December 2017 04:07 PM   [ Ignore ]   [ # 4 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Thanks for the nice feedback, José.

If the shape of A and B are quite different, the Inheritance (…_31.c4d) should be used.

Anyway, the Voronoi use is excellent. If you use the use the Sort Result by>User, and have a tiny value in x or z besides a larger one in y, the cube dissolves much nicer.

Love it. I have suggested it as a quick tip if you don’t mind, it is just too cool to have it sit somewhere in the forum.

Thanks for sharing.

Yes, that would be nice to have the “Surface” based clones sorted, no question! That would be a case for the Suggestion form:
https://www.maxon.net/en-us/support/suggestions/
If you don’t want to do it, let me know -it’s your idea so you should suggest it, if not - I will wink

BTW, have you tried distance to Object as sorting? Which would certainly create a much nicer A to B set up.

All the best

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 02 December 2017 04:25 PM   [ Ignore ]   [ # 5 ]  
Avatar
Total Posts:  19
Joined  2016-04-05

Thank you Dr. Sassi
I just added it to Suggestions. Hopefully it’ll get implemented in future versions smile
And would love to see that Voronoi use as a quick tip also!.
Best regards,
José

Profile
 
 
Posted: 02 December 2017 04:29 PM   [ Ignore ]   [ # 6 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

I certainly hope that you get this credited in the Quick Tip, José.

It is one of these things where I feel that it will open so much doors. Great find. I’m exploring at the moment the Sort-Distance-Object option. I really love it.

Cheers and thanks again

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 02 December 2017 04:47 PM   [ Ignore ]   [ # 7 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

P.S I couldn’t help it—I had to make a little one minute clip about the Sorting by Distance.

Scene files (formula only, with delay, and animated)
https://www.amazon.com/clouddrive/share/zW41PWMqAxs5bO5Jb6O55AsKtl9nmuoDOy8HcO26TBW

Add a Delay Effector under the Inheritance Effector and they smoothly move from A to B.

One minute clip:
https://www.amazon.com/clouddrive/share/Oq7NW2YjK4hC2BJ9vt00CyJ1A0Prv6Wr7KRN5M6ELeW

Results will change if placed under a Parent, as the parent will change the orientation of the calculated positions.

ENJOY

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 02 December 2017 05:05 PM   [ Ignore ]   [ # 8 ]  
Avatar
Total Posts:  19
Joined  2016-04-05

That’s a great implementation. You pushed it even further, thanks!
I should dig a bit deepper into the formula effector BTW smile
Cheers

Profile
 
 
Posted: 02 December 2017 05:11 PM   [ Ignore ]   [ # 9 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Yes, I had to, this is such a nice combination – based on your findings, José.

The Formula Effector is really powerful. The simplest way to use it, is to type a simple 1 into the formula filed, then it behaves like the Plain Effector, all “Effector>Parameters” are used then (PSR) to 100%. If you keep that in mind, it will guide you through the exploration. You also can connect the t of f slider to anything in XPresso, to feed values into that field.

My best wishes

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 03 December 2017 08:50 PM   [ Ignore ]   [ # 10 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Another P.S.:

A while ago there was a discussion about how to sort the information for the MG-Tracer. The option discussed above “kind of” does it. Have a look.

Scene file:
https://www.amazon.com/clouddrive/share/NOMA9JDvXTwy3kat9z4qXRtqfp2yOLnICXolY9oFCoB

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile