Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1


How to automatically reset the Simulation in the Carbon For Houdini plugin 2 years 3 months ago #705

  • Sebastian
  • Sebastian's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
  • Posts: 170
  • Thank you received: 38
The Carbon Simulation node in the Carbon For Houdini plugin does not automatically reset when you make changes upstream, such as changing parameters on a Carbon Cloth.
This is to prevent dozens, or even hundreds of automatic resets from happening, which could drastically slow down your workflow.
But there might be certain situations where it can come in useful to have automatic resets of the Carbon Simulation whenever a change occurs upstream.
Have a look at this video to find out how you can accomplish this:

If you follow the approach in the video, you will need to be careful, as it will trigger a reset on any change in the input.
So in that scene in the video, if the sphere geometry was animated, the sphere1 and therefore the Collider will update at every frame and pass on "dirty flags". This will pretty much lock you down as it'll jump into an infinite loop of resetting the simulation.
So in that case you'd want to put the python node between the Cloth and the merge to only trigger resets if a cloth parameter changes.
Then, keep in mind that if you have animated cloth parameters, you are basically out of luck with that approach.
The one thing you can do now is to put the python where it was, e.g. between the merge and Simulation, and be more creative.
For example, I set the Simulation start frame to 1, but the timeline first frame to 0.
And then in the python node, change the code to this:

So now, only changes made on frame 0 will trigger a reset.
It's important to ensure this frame is smaller than the simulation start frame as otherwise, we might run into infinite reset loops again.

Please Log in or Create an account to join the conversation.

Last edit: by Sebastian.
  • Page:
  • 1
Time to create page: 0.115 seconds