How to accces prim intrinsic "bounds" values? [{SOLVED}]

   489   2   1
User Avatar
Member
1010 posts
Joined: April 2017
Offline
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
Edited by olivierth - Jan. 15, 2024 10:17:18

Attachments:
Houdini_PrimInstrinsics_Bounds_01.JPG (29.6 KB)

User Avatar
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 :

float bounds[] = primintrinsic(0, "bounds", @primnum);
f@bound3 = bounds[3];

Edited by ObeidaZakzak - Jan. 13, 2024 07:28:14

Attachments:
bounds_intrinsic.png (235.8 KB)

Houdini Pipeline Supervisor @ TAT Studio
User Avatar
Member
1010 posts
Joined: April 2017
Offline
AHHH!! You have to store it in an array. That's the part I was missing.

Thank you!

-Olivier
  • Quick Links