Jump to content
gojade

Dynamically scaling pieces?

Recommended Posts

Hi there,

I got a question regarding voronoi pieces:

I want to scale them dynamically (by an animated noise map for example).

When using a foreach loop with a transform inside with CEX,.. pivots, the pieces each scale fine, but all at he same time.

I my idea was to use color for the scale, but for this each piece should have a different color. Now the problem is that I cant color the whole pieces, but their invidual points/primitives only when using attribtransfer (regardles if its in an own for each...).

Well I hope you know what I mean.

Thanks,

Best

Jan

 

 

 

vornoi_scale_test1.hip

Edited by gojade
file upload

Share this post


Link to post
Share on other sites

You can get random colors with a assemble + color node

 

RFsGn1W.png

 

However, I couldn't make your transform method there works. But you can use an expression like this to access the attribute, "s" in this case, in the primitive. This hinges on the fact all primitives have the same attribute

 

wHNHDdB.png

 

 

Share this post


Link to post
Share on other sites

You could use a 4d noise, using the scale attribute as the w component. For your setup, if you promote the $CR attribute to a detail attribute you should then be able to use that as a scale.

Random_Piece_Scale_mk_v001.hip

Edited by nuki

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

×