Jump to content

Get and set average values over animation time


Pancho

Recommended Posts

I'll try to explain it as simple as possible. I do have a constantly changing topology. The only way to track primitives is to use the cellpt index of the voronoi node. So, this is my fake polygon index.

I exported the animation as an alembic file.

What I want to do now is to get the average primitive position on the z axis and set it to the primitives.

Imagine there is a lot of turbulence during the animation and I want to restrict the z position to the average position of the primitive.

Since the primitives don't necessarily exist during the whole animation time this might make it even more difficult.

From a logical point I would try to get the z position into an array an calc the average of this array for each primitive (approx. 8000). Then I would need every primitive to look this value up and set it to itself.

But I have no idea how to do this practically in H.

Anybody an idea?

Cheers

Tom

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...