For Each sorting issues

   1809   4   2
User Avatar
Member
8 posts
Joined: Oct. 2016
Offline
Heyho,

currently, I have a problem with the For each and sorting nodes.
I want some Alembic model sort over the Z-axis and then animated them from start point to end point separately with the timeshift upwards.

But I don´t get it working, probably something simple but I don´t find the issue.

I made an example for that and the file is attached, can someone help,

Thanks
Edited by antonsfx - June 1, 2019 17:40:03

Attachments:
houdinifx_2019-06-01_23-24-57.png (535.5 KB)
ForEach_sorting_issue.hip (157.6 KB)

User Avatar
Member
2036 posts
Joined: Sept. 2015
Offline
Changed your sorting to primitives, and changed your last value from -12 to -20 in your expression of the time sop.(Loop block on the left)

Is that the effect you were after?

Attachments:
ForEach_sorting_issue.hiplc (178.8 KB)

User Avatar
Member
7737 posts
Joined: Sept. 2011
Offline
The foreach loop can be avoided in this case.

The animation offsets can be done in an attribute wrangle using the chv(parm, time) function signature.

Attachments:
ForEach_sorting_issue_alt.hip (145.1 KB)

User Avatar
Staff
4159 posts
Joined: Sept. 2007
Offline
I haven't found timeShift + foreach super intuitive (I feel like I have to re-learn it every time I use it. But in this case, if you are offsetting some animation, there are some attributes you can use for both packed prims and alembic packed prims, for offsetting time on different copies of an animated prim.

This odforce post links to the video + example: https://forums.odforce.net/topic/31923-arnesen-cubes-in-houdini/ [forums.odforce.net]

Hope that helps!

*edit*

What jsmack said
Edited by goldleaf - June 1, 2019 20:10:24
I'm o.d.d.
User Avatar
Member
8 posts
Joined: Oct. 2016
Offline
heyho thanks for that quick help, don´t know what went wrong yesterday with me. ^^
  • Quick Links