Farmfield Posted May 1, 2017 Share Posted May 1, 2017 Setting this up as a copy stamp for someone in the Houdini Facebook group asking how to use a time shift on objects copied to particles, yesterday, but I also tried to set it up with a for loop and ran into this issue. Seems, due to how the iterations are counted, the setup "breaks" after particles starts to get killed off and the number of iterations gets "stuck", looping, or how to describe it... I'm probably missing some obvious solution, but I'm kinda stuck - so posting it here for someone with a brain to figure it out. copy.stamp.forloop.hiplc Quote Link to comment Share on other sites More sharing options...
stheos Posted May 1, 2017 Share Posted May 1, 2017 It is normal for the iteration number per particle to change, if you delete particles in the foreach. Instead of referencing the iteration, try referencing the id attribute of the particle for the random generator. In your example the rx becomes: @Frame * 5 + fit01(rand(point("../foreach_begin1/", 0, "id", 0) + 65), 0, 100) Quote Link to comment Share on other sites More sharing options...
Farmfield Posted May 2, 2017 Author Share Posted May 2, 2017 Aah, of course - as I said, I'm probably missing some obvious solution - I was completely into using the current iteration... Much appreciated. Oh, and if this is the first thing you've written here in three years, I will take public credit for provokating that response. Quote Link to comment Share on other sites More sharing options...
stheos Posted May 5, 2017 Share Posted May 5, 2017 You have been such an inspiration, I had to reply! Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.