I'm learning VEX, what I'm trying to do is to create a sphere in a Point Wrangle (Detail) with specified radius using VEX.
I can create the sphere prim, but I can't seem to change its radius, and it's always created with the default value of 1.
For example:
int pt = addpoint(0, 0); setpointattrib(0, 'P', pt, set(0, 5, 0)); setpointattrib(0, 'pscale', pt, 3.0); int prim = addprim(0, 'sphere', pt);
I was under the impression that by changing the point's attribute 'pscale', it would affect the sphere's radius, with the following rational:
1) The sphere's position was affected by the point's position attribute 'P' (so why not 'pscale');
2) The sphere's radius *would* be affected if I use a copy_to_point SOP node instead (but I want to learn the VEX way).
Much appreciated for any advice/insights on how to do this.
Thank you.

