scodyscody Posted November 20, 2020 Share Posted November 20, 2020 (edited) 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 November 20, 2020 by scodyscody Quote Link to comment Share on other sites More sharing options...
malexander Posted November 20, 2020 Share Posted November 20, 2020 I believe that means that the bbox is invalid, likely because the extents weren't authored on the prim. Quote Link to comment Share on other sites More sharing options...
scodyscody Posted November 20, 2020 Author Share Posted November 20, 2020 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.