Hi!
I have a detail wrangle with a vector attribute containing the size a box should have. Since the box sop has 3 input boxes (x,y,z), how to I use the detail function to access one component at a time? I tried:
detail(“../back_fence_math/”, “midPostsSize.x”, 0) (result looks like 0)
and
detail(“../back_fence_math/”, “midPostsSize”, 0).x (gives error)
…or do I need to go back to the wrangle and set 3 float attributes?:
f@midPostsSizeX
f@midPostsSizeY
f@midPostsSizeZ
-Olivier
accessing vector detail attribute's X component (in a transform)?
3615 1 0-
- olivierth
- Member
- 1184 posts
- Joined: April 2017
- Offline
-
- tamte
- Member
- 9420 posts
- Joined: July 2007
- Offline
third argument in detail() vex function is ignored, to get vector detail attribute use the same syntax as here
https://www.sidefx.com/forum/topic/59209/#post-265419 [www.sidefx.com]
EDIT: but if you are talking about detail Hscript Expression, then this should work (for getting X, Y, Z)
https://www.sidefx.com/forum/topic/59209/#post-265419 [www.sidefx.com]
EDIT: but if you are talking about detail Hscript Expression, then this should work (for getting X, Y, Z)
detail(“../back_fence_math/”, “midPostsSize”, 0) detail(“../back_fence_math/”, “midPostsSize”, 1) detail(“../back_fence_math/”, “midPostsSize”, 2)
Edited by tamte - Nov. 23, 2018 17:33:42
Tomas Slancik
CG Supervisor
Framestore, NY
CG Supervisor
Framestore, NY
-
- Quick Links
