for each loop time shift

   5859   3   0
User Avatar
Member
20 posts
Joined: Nov. 2016
Offline
Hi
I have try to find topic but nothing,but found nothing for noobs.

I Have cube with animation in the forEachLoop 4x4 grid
How can i time shift each other to have them randomly transform and colored?

i tried Timewarp ant Cache - but the problem is i don't know how to ask for data to drive.(

trying to use:
point(“../foreach_begin1”, 0, “div”, 0) from tutorial but it seems doesn't work for me.



thanks
User Avatar
Member
471 posts
Joined: Nov. 2013
Offline
See this HIP file.
This is a simple example for your question.
Use Seed parameter to change position of boxes randomly.

Attachments:
Time shift in for loop.hip (65.0 KB)

User Avatar
Member
20 posts
Joined: Nov. 2016
Offline
thanks for your reply,
but i meant something like this

Attachments:
forEachTime.hiplc (103.6 KB)

User Avatar
Member
471 posts
Joined: Nov. 2013
Offline
I have fixed it.
For random color you can simply add a Point Expression node and use a rand(@element) for Attribute set to color(Cd).
For time offset, I set Iteration Method to By Count and in Iteration parameter, I tell Houdini to get all points from add1 node.
Hope this helps.
Edited by Nima - July 31, 2017 16:17:32

Attachments:
forEachTime.hiplc (95.8 KB)

  • Quick Links