vex for $CY ?

   4241   4   0
User Avatar
Member
80 posts
Joined: 12月 2013
Offline
Hello,

I can't find this simple thing in the forum or in the help.
What's the vex function for the former $CY ?

Many thanx
User Avatar
スタッフ
6413 posts
Joined: 7月 2005
Offline
For VEX:

getbbox_center(0).y

For the expression language

centroid(0, D_Y)
User Avatar
Member
80 posts
Joined: 12月 2013
Offline
Thx a lot but I wasn't looking for the centroid but for the copy number when using a copy sop.

The equivalent of @ptnum when you don't use any template.

Many thx.
User Avatar
スタッフ
6413 posts
Joined: 7月 2005
Offline
Sorry, I read $CEY when you wrote $CY….

My usual approach is to use points to represent the copies. Then @ptnum is your $CY before the copy-to-points. If doing a for-each-point loop, I like to use an Enumerate to create an id attribute. Then point(-1, ‘id’, 0) can grab the currently processed point's id number, which acts like your $CY.
User Avatar
Member
80 posts
Joined: 12月 2013
Offline
Yes I ended up copying on a pointgenerate sop, thanx a lot.
  • Quick Links