Simple vex question about setting vector attributes.

   1126   2   1
User Avatar
Member
115 posts
Joined: Feb. 2014
Offline
Trying to include a bit more vex in my workflow as a "shallow end" to grasp code a bit more.

This works as expected,
@Cd = {.1, .2, .3};


This doesn't work,
@Cd = {rand(@ptnum), rand(@ptnum+5), rand(@ptnum+10)};


but this does work,
@Cd = set(rand(@ptnum), rand(@ptnum+1), rand(@ptnum+2));


I know what the manual says about set So what's the difference between using set and the first example that makes the middle one fail?

cheers,

Andi.
User Avatar
Member
393 posts
Joined: Nov. 2016
Offline
Curly braces for simple numbers, if you're using functions, variables or other attributes, use set().
User Avatar
Member
115 posts
Joined: Feb. 2014
Offline
Cheers Tanto, I'm getting there slowly...



A>
  • Quick Links