Jump to content
anbt

How to randomly replicate points between two values?

Recommended Posts

Hello Hello,
I have this Point Replicate set to 20. I would like to not have 20 for each point but for example between 10 and 20.

Some points would be replicated 10, other 13... etc.. till 20!

It should be a super simple line of vex but can't make it work.

Thank you

 

Screenshot 2021-03-10 092750.jpg

Share this post


Link to post
Share on other sites

Toggle on "Generate from Attribute" and create an attribute that ranges from 0.5 to 1. Where 0.5 will create 10 points and 1 will create 20.

Share this post


Link to post
Share on other sites

Slight modification to what Gorrod just posted. To keep things cleaner, set the Points per Point to 1, and define an attribute than returns between 10 & 20 randomly per point. The new Attribute Adjust Integer SOP is perfect for this.

 

image.thumb.png.6b2baa1f823c1ef594736bab2a7c3a91.png

  • Like 1

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

×