best way to emit from prim center on H13 particles?

   3995   5   1
User Avatar
Member
304 posts
Joined: May 2006
Offline
H13 particles are terrific, but I noted the new POP Source DOP has less emission options. Namely, there is no option to emit from primitive centers, which was a nice trick.
What´s the recommended approach for that now?
Javier Meroño
FX TD.
User Avatar
Member
8599 posts
Joined: July 2007
Offline
you can get prim centers simply by using attribwrangle
set it to Primitive and type:
addpoint(0, @P);
removeprim(0, @primnum, 1);
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
304 posts
Joined: May 2006
Offline
Thanks.
It works very well.
It´s rather interesting that I tried the same thing you pointed but instead of using the Wrangle I tried from a ForEach, using and Add SOP with a centroid function for each point and then deleting the primitive, so the same thing from the wrangle but with nodes, and the final point positions are similar but not the same.
I´m using this with Fonts.

Also, just out of curiosity, I tried the old method of scaling with a Primitive SOP to 0, and then fusing points, which seems to work as well, and the resulting points match your Wrangle method, not my centroid method.
Javier Meroño
FX TD.
User Avatar
Member
8599 posts
Joined: July 2007
Offline
that's because centroid() returns center of the bounding box

if you want the same results with your Foreach method you would need to use
pointavg() function to get the center for each primitive

but attribwrangle is by far the fastest from all 3 mentioned methods
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
304 posts
Joined: May 2006
Offline
Right. Pointavg returns quite the same values.

I know Atttrib Wrangle is faster. I was just experimenting.

Thanks for pointing this out.
Javier Meroño
FX TD.
User Avatar
Member
258 posts
Joined:
Offline
Thanks…I was just struggling with this very issue and the forEach method was too slow.
  • Quick Links