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
   
 
How do I select specific numbers of clone in the formula effector?
Posted: 23 October 2021 04:50 PM   [ Ignore ]  
Total Posts:  13
Joined  2017-12-01

Hi,
I have a 100 clones in the cloner and I want a specific numbers from the index to be affected, how do I write a list in the formula effector?  For example, I want 1,25,54,76,99 to be affected and not others. Hope that make sense, thank you!

Profile
 
 
Posted: 23 October 2021 05:05 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi hoi,

Here is an example:
https://www.amazon.com/clouddrive/share/BtzoVOBX2XqlV3sJQfPrqz2OWIPVpn0kH8ZvZ71HUAi

I’m not sure if you wanted the ID or the count number, as IDs start with zero. The first object would be zero, and if you have a one as a number, you need to subtract one.

The formula would be:
ID=1 + ID=25 + ID=54 + ID=76 + ID=99

If you wanted the count number starting with one:
ID=(1-1) + ID=(25-1) + ID=(54-1) + ID=(76-1) + ID=(99-1)


This means it iterates through the clones, and if an id comes up that would be seen as “True”, then it produces a True or one value. Let’s say Clone ID 54 is checked, then the result would be 0+0+1+0+0=1, which means true, and the clone is selected (if the formula is in a MoGraph Selection Tag).

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: 23 October 2021 05:10 PM   [ Ignore ]   [ # 2 ]  
Total Posts:  13
Joined  2017-12-01

that is perfect and thank you for speedy response!

Profile
 
 
Posted: 23 October 2021 05:11 PM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

You’re very welcome, hoi, and thanks for the feedback!

Enjoy your project.

 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