Jump to content
Sassoun

VEX - Variables/attributs in vectors

Recommended Posts

Hi all !

I'm struggling with an addpoint function,

I'd like to use a variable to declare a point but it seems that's not allowed…

What is the proper way to do this ?

My code in a pointwrangle :

float height = fit(rand(@seed, @ptnum), 0, 1, 0.4, 0.55);
addpoint(0, {0,height,0});

if I put a 1 instead of "height" it creates the point perfectly well :/

 

Thank you for your help !

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

×