Jump to content

Recommended Posts

Hi,

I'm trying to randomize the uniform scale of some spheres which are being copied to points. However, nothing I've tried is working. The best result is using a transform node, but all the spheres merely scale to the first parameter and ignore any type of randomization. The attached file currently has an app wrangle using some vex to randomize pscale that was defined in an att created node, but it's throwing errors I don't understand how to fix.

Thanks in advance...

wk5_terrain-02.hipnc

Share this post


Link to post
Share on other sites
@pscale = fit01(random(@ptnum), 100.0, 300.0);

 

  • Like 1

Share this post


Link to post
Share on other sites

Thanks Symek, that fixed it. I've only been learning code & scripting for a little while, but long enough that I should've caught that syntactical error sooner. 

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

×