Jump to content

Convert a set of Prim Attributes to Prim Groups


jonidunno

Recommended Posts

Happy Friday,

I'm currently working on a project where I need to export alembics assets into C4D. The assets I want to export have embedded Prim attributes that I want to convert to Prim groups in order for the artist to have control of the material selections in C4D.

Currently, I'm splitting all the attributes and converting them to groups manually which is time-consuming and can break. Since I'll be modifying and making adjustments I was wondering if there was a more procedural way of doing this through a wrangle or possibly the partition sop?

Any help would be greatly appreciated, thanks!

CaptureAgent03.thumb.jpg.45af583f9f214cb5a827d978501f8bb3.jpg

Link to comment
Share on other sites

Hey there!

You can create a primitive string attribute with slashes to a create hierarchy in the alembic.

See the attached image of the the Alembic ROP interface. It is set to "path" by default. That and using the "Use Sop Path" setting should get you what you need. Good luck!

 

Capture.thumb.JPG.77de3b66361af0a52cf74908abf7f268.JPG

Edited by snoot
Link to comment
Share on other sites

26 minutes ago, snoot said:

Hey there!

You can create a primitive string attribute with slashes to a create hierarchy in the alembic.

See the attached image of the the Alembic ROP interface. It is set to "path" by default. That and using the "Use Sop Path" setting should get you what you need. Good luck!

 

Capture.thumb.JPG.77de3b66361af0a52cf74908abf7f268.JPG

Thanks for your response I think I figured out a great solution:

- Dropping a partition sop

- find the attribute name you want, which in my case is named "agentshapesname"

- for the rule say  `@agentshapesname'  and boom groups.

thank you for helping!

CaptureAgent03.thumb.png.a4012578b76c5a210a578fde35b07d4b.png

  • Like 2
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...