Jump to content

[Resolved][Solaris] usd_getbbox Vex functions return Huge incorrect values


scodyscody

Recommended Posts

Hi,

I'm running into a small problem trying to automate a Daily Tool.

Basically I want to be able to get the BBox of my asset to transform them accordingly next to each other for presentation.
Only Problem is when I query the Bbox_size or min,max,etc... using the Vex functions(usd_getbbox_size)
houdini returns values that are huge (bboxSize = {-6.80565e+38,-6.80565e+38,-6.80565e+38}).
Which makes it basically unusable.

I don't know wether it's a bug Or I'm using it wrong.

Thank you very much in advance!
Antonino

Here is my vex snippet:

//=========== Parameters =============//

string parentPath = usd_parentpath(0, @primpath);

//----------- String Path Par

string wildCardAsset = "/cube1";

//----------- Setting Bbox Par

vector bbox_size = usd_getbbox_size(0,wildCardAsset,"Render");


printf("bboxSize = %g",bbox_size);

usd_getbboxsize.hipnc

Edited by scodyscody
Link to comment
Share on other sites

1 hour ago, malexander said:

I believe that means that the bbox is invalid, likely because the extents weren't authored on the prim.

I found the problem it was due to my "purpose tag" was incorrect!

I changed it to proxy for my mesh and I got the correct values

Thanks!

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...