Jump to content

Accessing prim intrinsics


konstantin magnus

Recommended Posts

What type is primintrinsic "bounds" and how can I access each of its six components? I can access the first three using v@ or four components using p@, but dont know how to reach further. the matrices seem either too small or too big.

vector bboxmin = primintrinsic(0, "bounds", @primnum);
@min = bboxmin.z;

Also, is there a way to grab one component directly like this?

float bboxmin = primintrinsic(0, "bounds", @primnum).a;

 

Edited by konstantin magnus
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...