Transferring groups when using copy to points.

   288   4   1
User Avatar
Member
9 posts
Joined: Nov. 2023
Offline
Hi everyone, Merry Christmas and Happy New Year!
I am facing one problem when using copy to points node. Namely I created a sand simulation with mpm solver and decided to copy the geometry, small stones, to it. When copying, I specified that it is necessary to copy all attributes, which happened, except for copying attributes and groups from the stones (necessary attributes for further shading in the karma were not transferred, namely the attribute name and groups rock1,2,3,4,5). I tried to copy not packed geometry, but it does not work. The main idea is to make it so that all 5 variants of rocks were transferred when copying to points, as well as the groups created on them, in other words, I want to get 2 million rocks with 5 different variants and groups, so that when using usd export, the geometry stored in itself groups and attribute name. I was able to copy all 5 variants using the var attribute I created. But the groups were not transferred and also the name attribute was simply removed. Who knows how to solve this problem? Namely, how to transfer from the geometry that is copied to another geometry, attribute and groups. For further use in usd

Attachments:
Screenshot 2025-01-03 172856.png (2.4 MB)
Screenshot 2025-01-03 173518.png (1.6 MB)
MPM_sand_test.hip (5.0 MB)

User Avatar
Member
8854 posts
Joined: July 2007
Online
Just from the screenshots, looks like you have Pack and Instance checked

So your groups and attributes are on the geo inside of each resulting packed prim

But since your source variants are already packed you don't need to check Pack And Instance as that creates just another packed level
Edited by tamte - Jan. 3, 2025 12:18:39
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
9 posts
Joined: Nov. 2023
Offline
Yes, it does work, all the necessary data appears. But when trying to do usd export the program just crashes, although I don't understand why this happens as I have a pretty strong computer, but it does crash.
Maybe I need to translate everything I get into vdb better and render it as one mesh?
User Avatar
Member
8854 posts
Joined: July 2007
Online
on your MPM_solver_usd (USD Export) node check Primitive Definition/Packed Primitives and choose Create Point Instancer from the menu

also on all your Assemble SOPs uncheck Create Packed Fragments, so that it creates Packed Geometry primitives instead of Packed Fragments
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
9 posts
Joined: Nov. 2023
Offline
tamte
on your MPM_solver_usd (USD Export) node check Primitive Definition/Packed Primitives and choose Create Point Instancer from the menu

also on all your Assemble SOPs uncheck Create Packed Fragments, so that it creates Packed Geometry primitives instead of Packed Fragments



Thanks, it really works!!!
  • Quick Links