Read 3int attribute in VEX

   1869   3   0
User Avatar
Member
56 posts
Joined: June 2016
Offline
Hello,

how is it possible to access the second/third/etc entry in an 3int format with VEX?
tst[1]
etc won't work for me and I always get the value of
tst[0]
.


Thanks!
Edited by Xue_Yue - June 2, 2017 07:18:49

Attachments:
access_3int.hipnc (54.3 KB)

User Avatar
Member
459 posts
Joined: Oct. 2011
Offline
If you cast your tripple int to a vector when you read values from it, it seems to work:
i@read = v@tst[0];

-b
http://www.racecar.no [www.racecar.no]
User Avatar
Member
471 posts
Joined: Nov. 2013
Offline
Hello.
See the HIP file.

Attachments:
access_3int_FIXED.hipnc (58.3 KB)

User Avatar
Member
56 posts
Joined: June 2016
Offline
Thanks bonsak,
thanks Nima,

it works now. Casting is a very good idea.
  • Quick Links