Jump to content

Nodes - Cloner Object Disappearance


Aggrotech
Go to solution Solved by jed,

Recommended Posts

I have a simulation in the scene where the objects in the cloner fly to the attractor, surrounded by the collider body.
And it is possible to create with Xpresso scene where  cloner objects one by one disappear (scale from 1 to 0) when they collide with the collider?
I'm bad with Xpresso, I will be glad if someone can create the scene.
I tried to do a trick with the Plain and Field where the scale of the clones is changed to 0, but it does not work.

Link to comment
  • Replies 12
  • Created
  • Last Reply

Top Posters In This Topic

Hmmm...

Since you are dealing with a cloner you should use nodes specific to instances. I've never used XPresso with clones but I think the following nodes are key to the solution:

 

Object Index - Will only read instances from Object A (cloner) that have been in contact with the collider.

Data - Using only the indexes of those instances and the source cloner feed their data to a Sample

Sample - I think Sample acts like a Selection tag. It connects with an Effector and passes the Data of the chosen instances to that effector.

 

I think my solution does not work because the Object Instance node does not take more than one Instance at a time. Maybe you can make a collection of Instances using an iteration node ....

 

As for the time-delay for the shrinking I've no idea if your approach can fit in mine or if you could abandon the node implementation and use a Delay effector...

 

image.png.54085487445521bdd51f26363e1586ae.png

Edited by HappyPolygon (see edit history)
Link to comment
On 1/23/2023 at 2:03 AM, HappyPolygon said:

Hmmm...

Since you are dealing with a cloner you should use nodes specific to instances. I've never used XPresso with clones but I think the following nodes are key to the solution:

 

Object Index - Will only read instances from Object A (cloner) that have been in contact with the collider.

Data - Using only the indexes of those instances and the source cloner feed their data to a Sample

Sample - I think Sample acts like a Selection tag. It connects with an Effector and passes the Data of the chosen instances to that effector.

 

I think my solution does not work because the Object Instance node does not take more than one Instance at a time. Maybe you can make a collection of Instances using an iteration node ....

 

As for the time-delay for the shrinking I've no idea if your approach can fit in mine or if you could abandon the node implementation and use a Delay effector...

 

image.png.54085487445521bdd51f26363e1586ae.png

So, Once I found a solution on some resource where, when object touch an object of cloner, certain elements of it begin to be simulating (example with animation attached). After this decision, I wondered if it was possible to do the same thing with clones shrinking by scaling to 0. But I do not really understand how this part of the nodes works (picture attached). Is it possible?
On 1/22/2023 at 6:40 PM, HappyPolygon said:

So you want the objects to shrink after they collide with the collider object and the shrinking effect to have a time interval ?

 

Screenshot 2023-01-24 .jpg

Xpresso Cloner Index.c4d

Link to comment
On 1/25/2023 at 3:19 PM, jed said:

Here I used Python to iterate the cloner.  A small value is subtracted from the spheres radius every frame when in the zone.

 

Object Disappearance_0001.c4d 247.89 kB · 1 download

Wow, thank yo so much @jed @HappyPolygon! Perfect setup. Everything works fine, and we can change the radius of the spheres and shrinking speed. Thanks a lot! I have only one additional question, I understand that everything works around radius and this will not work with other objects in the cloner. Is it possible to make somehow the objects inside the spheres also shrink up? Or, in some other way, to use any instances in cloner. Thanks!

154705.jpg

Link to comment
  • Solution
3 hours ago, Aggrotech said:

Is it possible to make somehow the objects inside the spheres also shrink up?

 

Sort of - but it's a bit flaky. You can use the standard hierarchy path to go up/down etc using a reference node.

 

hierarchy.png.deae846e27ea63e73f39948f6583f1ff.png

 

I just used D to go down one level from sphere to figure, then similar XP as the radius to control the figure height. I tried using scale, but it exploded.

 

Object Disappearance_0002.c4d

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • LATEST ACTIVITIES

    1. 1

      Cinema 4D 2025.1 ❄️ Winter Release 2024

    2. 1

      Cinema 4D 2025.1 ❄️ Winter Release 2024

    3. 13

      Multi Gizmo (Move, scale, rotate in one)

    4. 7

      Looking for Python Script : Create Instances from multiple Selected objects

    5. 13

      Multi Gizmo (Move, scale, rotate in one)

×
×
  • Create New...