pack geometry based on primitive integer attribute

   451   4   1
User Avatar
Member
42 posts
Joined: 2月 2016
Offline
Ello,
I have this geometry which I've voronoi fractured with 4 input points / cells, the resulting geo however is in more than 4 parts since its made of varied geometry.
I'd like to loop over only the "cells" rather than all the disconnected parts. I thought I could do this by ticking "Primitive Cell Point" in the output attributes section of my Voronoi Fracture node.
Now each part has a cellpt primitive integer attribute showing to which cell it belongs.
So next I thought I could just attach a pack node and define the name attribute as "cellpt", this is the correct thinking?
I get this error:

Error
Invalid name attribute for partitioning. Packed fragment primitives currently only support primitive string attributes.

I'm not sure how I should proceed, do I need to convert the cellpt attribute to a string, or is the solution even simpler?
Thanks for your time.
Edited by NNNenov - 2024年3月21日 14:02:46
User Avatar
Member
412 posts
Joined: 11月 2016
Offline
You can convert your attribute or uncheck Create Packed Fragments in the pack node.
User Avatar
Member
42 posts
Joined: 2月 2016
Offline
Tanto
You can convert your attribute or uncheck Create Packed Fragments in the pack node.
ooh, thank you, I thought packed fragments was what the pack node does, but if I untick them it works, whats the difference? fascinating
User Avatar
Member
8622 posts
Joined: 7月 2007
Offline
NNNenov
whats the difference?
https://www.sidefx.com/docs/houdini/model/packed.html#types-of-packed-primitives [www.sidefx.com]
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
42 posts
Joined: 2月 2016
Offline
thank you
  • Quick Links