Hi!
I'm using an Instance node to scatter a bunch of assets. I wanted to make a script that places each individual asset one next to each other. I noticed a prim intrinsic named "bounds" that seams to have the width value in the bounds index 3.
How can I access the bounds index 3 and store it in a float?
-Olivier
How to accces prim intrinsic "bounds" values? [{SOLVED}]
489 2 1- olivierth
- Member
- 1010 posts
- Joined: April 2017
- Offline
- ObeidaZakzak
- Member
- 101 posts
- Joined: Dec. 2019
- Offline
Hello,
Acessing intrinsic attributes requires using some functions, such as primintrinsic() or detailintrinsic() in VEX.
In your case, accessing bounds at index 3 looks like this in an attribute wrangle :
Acessing intrinsic attributes requires using some functions, such as primintrinsic() or detailintrinsic() in VEX.
In your case, accessing bounds at index 3 looks like this in an attribute wrangle :
float bounds[] = primintrinsic(0, "bounds", @primnum); f@bound3 = bounds[3];
Edited by ObeidaZakzak - Jan. 13, 2024 07:28:14
Houdini Pipeline Supervisor @ TAT Studio
- olivierth
- Member
- 1010 posts
- Joined: April 2017
- Offline
-
- Quick Links