Jump to content

VEX - Variables/attributs in vectors


Sassoun

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 !

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...