Jump to content
anicg

Let a primitive attribute (name) survive polygon to vdb to polygon

Recommended Posts

After voronoi fracture, each piece has a name and can be coloured differently based on the name (color node, random from attribute: name).

After the vdb, and vdb convert to polygon, the name is still there but not for every piece, it’s one name one colour for the whole thing, all the pieces get the same colour.

how do i “smuggle” the name attribute through vdb and still get it after i convert vdb to polygon?

Edited by anicg

Share this post


Link to post
Share on other sites

When you convert multiple primitives to a VDB the VDB is a single primitive, hence you're only getting one name in the process.  

You need to do this conversion inside a for loop(by name) to ensure the correct name is copied to each piece.

Share this post


Link to post
Share on other sites

You don't necessarily need a loop, although it might be the cleanest (and if compilable) fastest way.

Anyway, here is a file to show 2 other methods of doing it

dm_surviveConversion.hipnc

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

×