Jump to content
logix1390

Timewarp copy stamp problem

Recommended Posts

logix1390    0

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

Share this post


Link to post
Share on other sites
Farmfield    264

Posted a reply in your other post - but please don't post multiple posts.

Share this post


Link to post
Share on other sites
Farmfield    264

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 by Farmfield

Share this post


Link to post
Share on other sites
logix1390    0

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
logix1390    0

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.

Share this post


Link to post
Share on other sites
Farmfield    264

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 by Farmfield
  • Like 1

Share this post


Link to post
Share on other sites
Farmfield    264

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...

 

  • Like 1

Share this post


Link to post
Share on other sites
Farmfield    264

No sweat, I've been helping out here way to little lately, gonna try to roam here more. :)

Share this post


Link to post
Share on other sites

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

×