point inbetween

   3813   9   2
User Avatar
Member
102 posts
Joined: March 2012
Offline
hi.
i have a simple particle animation.
http://clip2net.com/s/26wO3 [clip2net.com]
how can i generate a new points inbetween of every four points?
i mean like:
points 1 2 3 4 - in avg pos of those points should be a new one.
points 5 6 7 8 - e.t.c
User Avatar
Member
512 posts
Joined: July 2009
Offline
very tricky thing to do in SOPs, I can only imagine a combination between a foreach SOP and a SOP Solver, where you create a “storage” point anywhere in space that gets a string attribute assigned to which you add the already iterated particle id's on every time step. That way you can kill already iterated points and use a foreach sop (by origin attrib group created in a partition SOP)
to add the center of mass point once the npoints(“../each1”) > 3.

if you know Python there's a way to do such a thing with the DOP's script solver, that way you could loop through the points using a $ORIGIN attribute that you assign in the Source POP, create new points based on their center of mass and store the old particle id's in a list so you don't have to query them once they created a point. Maybe that could work, can't say for sure though, haven't tried it yet :?

Any other ideas?
http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
102 posts
Joined: March 2012
Offline
how can i get point position from point number attribute?
is it possible?
i have an integer value of point number and im need to get the Ppos of this point
User Avatar
Member
606 posts
Joined: May 2007
Offline
The “every N points” option in Add SOP might do it for you.

Attachments:
every_4th.hip (63.1 KB)

User Avatar
Member
102 posts
Joined: March 2012
Offline
eetu
The “every N points” option in Add SOP might do it for you.
i have a POPNET.
there are particles emitted.
i cannot achieve the same result with particles.
User Avatar
Member
700 posts
Joined: March 2009
Offline
qbick
i have a POPNET.
there are particles emitted.
i cannot achieve the same result with particles.

Do you have a “production” reason for it to be in the POP context? Otherwise, as long as the performance is correct, I don't see a reason you need to burn your noodle to achieve it that way if the other way is already working…

Anyway, here's a test that might help you.

cheers

Attachments:
particle_center.hip (66.5 KB)

Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
User Avatar
Member
102 posts
Joined: March 2012
Offline
Do you have a “production” reason for it to be in the POP context?
i just want to know how to get correct result in that particular case
User Avatar
Member
102 posts
Joined: March 2012
Offline
btw scene is working perfectly.
thanks!
User Avatar
Member
700 posts
Joined: March 2009
Offline
Cool! You can probably use a for loop to make it procedural for whatever size sets you feed in… plus averaging velocity to get proper motion blur and all.

Cheers
Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
User Avatar
Member
102 posts
Joined: March 2012
Offline
rafaels
Cool! You can probably use a for loop to make it procedural for whatever size sets you feed in… plus averaging velocity to get proper motion blur and all.

Cheers
thank you very much!
i didnt knew what node in VOP can provide me attribute from point number.
well, now i know
  • Quick Links