Jump to content
jonidunno

Convert a set of Prim Attributes to Prim Groups

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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
4 hours ago, mauborba said:

 

 

How about this brother? 

Thanks, Mauborba this helped me out alot!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×