point function to access array pt value: error
1632
2
0
-
- olivierth
- Member

- 1189 posts
- Joined: April 2017
- Offline
Hi!
I've got a detail array attribute with the values:
0, 5, 7, 11 //representing point list
I wanted to get the position value of them but I get an error. Can somebody tell me what I'm doing wrong?
int corners[] = i[]@corners;
vector pt0pos = point(0, @P, corners[0]);
-Olivier
Edited by olivierth - Nov. 7, 2018 16:04:20
Attachments:
point_function_with_array_value.JPG (49.6 KB)
-
- tamte
- Member

- 9432 posts
- Joined: July 2007
- Offline
try this
int corners[] = i[]@corners;
vector pt0pos = point(0, "P", corners[0]);
Tomas Slancik
CG Supervisor
Framestore, NY
-
- olivierth
- Member

- 1189 posts
- Joined: April 2017
- Offline
DOOHHHHHH!!!!!!!!
Thanks.
-Olivier