Jump to content
Fabiano Berlim

Resample line based on attribute

Recommended Posts

Is there a way to resample a line based on an attribute?

The resample sop node only accept the $T variable.

Am I missing something?

In the end I want to resample based on the parametric value of the curve.

Is there any other way to do it?

Share this post


Link to post
Share on other sites

You could resample like crazy and then delete by attribute.

Share this post


Link to post
Share on other sites

That's a good idea!

In the end I solved using the curve as "Path Object" for a point that emit particles.

With the right speed of the point I was able to reconstruct the curve with the amount of samples that I needed.

Thanks for the idea!

Cheers!

Share this post


Link to post
Share on other sites

You could try chops' LookUp. It's a nice way to control samples density by hand or attribute. See example.

cheers,

ps btw, Macha, perhaps it would be a tip for your recent question about probability density functions too. Unfortunately I hadn't time to dig into it.

resample_chop.hip

Share this post


Link to post
Share on other sites

You could try chops' LookUp. It's a nice way to control samples density by hand or attribute. See example.

Amazing example! Thanks a lot SYmek!

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

×