logix1390 Posted May 7, 2017 Share Posted May 7, 2017 Hello again, I have a some spheres with sin wave animation copied to a grid. I want to randomize the speed of each sphere using a timewarp node. I made a stamp expression called "time" for every PT in my copy sop. It actually works, however... eventually all my animation comes to a stop. I have no idea why this happens. I even turned of the animation and applied some animated noise to each sphere and the same thing happens to the noise.. it comes to a stop. I might not be understanding the timewarp node fully. I attached my scene file if someone wants to take a look and possibly explain to me whats going on. Thank you timewarp_copy_problem.hip Quote Link to comment Share on other sites More sharing options...
Farmfield Posted May 7, 2017 Share Posted May 7, 2017 Posted a reply in your other post - but please don't post multiple posts. Quote Link to comment Share on other sites More sharing options...
logix1390 Posted May 7, 2017 Author Share Posted May 7, 2017 Sorry, i'm actually not sure how that happened. thanks for the response. Quote Link to comment Share on other sites More sharing options...
Farmfield Posted May 7, 2017 Share Posted May 7, 2017 (edited) Aah, ok, I thought you posted in different sections, that's pretty common - and pretty annoying. This was obviously a mistake then, so no sweat. And I hope my reply solves your issue. The stamping thing is becoming deprecated, it's going into for each loops now, so better get used to that workflow directly as the copy stamp node will likely be gone with the next Houdini release. Edited May 7, 2017 by Farmfield Quote Link to comment Share on other sites More sharing options...
logix1390 Posted May 7, 2017 Author Share Posted May 7, 2017 Hey Farmfield, I had to step out for a bit , but I just went through the post again and checked out the file you provided. This seems like a very interesting method . Is copying in a forloop faster than copy stamping outside of a loop ? Also, does this method work in Houdini 15.5 or only Houdini 16? We are currently using 15.5 at work and would love to use this method. I tried to re create it, but no luck on the randomization, they all rotate at the same speed and direction. I attached my scene if you want to take a look. Thank you copy_in_forloop.hip Quote Link to comment Share on other sites More sharing options...
ParticleSkull Posted May 8, 2017 Share Posted May 8, 2017 Hey Mike, I haven't seen Johnny's idea but here's a simple way to solve it (attached) My idea is to use a Time Shift instead. If you multiply the actual frame number by a random value (for each point, from 0 to 1), it will change it's speed. - Why your file is not working: At the copy sop you created a variable that goes from 100 to 300, right? You're feeding this values at the time warp so, as soon as one object reach this value (from 100 to 300) it stops. I hope it helps Cheers, Alvaro copy.stamp.random.animation.v1a.rar Quote Link to comment Share on other sites More sharing options...
logix1390 Posted May 8, 2017 Author Share Posted May 8, 2017 This is a great solution Alvaro. Thank you. Ahh i get it... For some reason I thought that my fit values would keep randomizing each stamp continuously even if it reached 100 or 300. But it makes sense that it would stop. Appreciate the help. Quote Link to comment Share on other sites More sharing options...
Farmfield Posted May 8, 2017 Share Posted May 8, 2017 (edited) Yeah, the for loops work the same in H15.x as in H16 and using a for loop is now preferred as they are moving away from the copy stamp function with H16, so better get into the for loop setups as it's how this stuff is going to be done gowing forward. And you hadn't referenced the correct node in the detail expression. copy_in_forloop.hiplc Edited May 8, 2017 by Farmfield 1 Quote Link to comment Share on other sites More sharing options...
ParticleSkull Posted May 8, 2017 Share Posted May 8, 2017 hey Johnny, good to know! my abilities at for loop still sucks but this setup looks quite simple, thx for sharing it Quote Link to comment Share on other sites More sharing options...
Farmfield Posted May 8, 2017 Share Posted May 8, 2017 For for loops and for each loops are really helpful at times, so it's good to get into those workflows. Here's a good example on how you can use for loops for iterative tasks... 1 Quote Link to comment Share on other sites More sharing options...
logix1390 Posted May 9, 2017 Author Share Posted May 9, 2017 Thank you farmfield ! This is a very cool method. Really appreciate the help ! Cheers Quote Link to comment Share on other sites More sharing options...
Farmfield Posted May 9, 2017 Share Posted May 9, 2017 No sweat, I've been helping out here way to little lately, gonna try to roam here more. 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.