eF_eX Posted September 16, 2018 Share Posted September 16, 2018 Hi Houdini documentation http://www.sidefx.com/docs/houdini/expressions/bbox.html tells me that the bbox function is replaced by other stuff. So ok bbox still works but the new functions don't. I can't figure out what to do to get the bounding box of an object with expressions. I provided a simple file, the very left transform uses the old way which works fine the middle i try with vex the right one i try with python. bbox.hip Quote Link to comment Share on other sites More sharing options...
anim Posted September 16, 2018 Share Posted September 16, 2018 you can't use VEX as parameter expression language, all tools with parms that accept VEX are referenced by Snippet VOP as a part of VOPnet where it gets evaluated, in other words it's treated as pure text until compiled by VOPnet, so it's very specific case, and can't be generalized for all parameters for python the usage would be hou.node("../box1").geometry().boundingBox().sizevec()[1] OR hou.pwd().inputs()[0].geometry().boundingBox().sizevec()[1] also for the confusing meaning of "replaced by" you can read this https://www.sidefx.com/forum/topic/57809/#post-258876 1 Quote Link to comment Share on other sites More sharing options...
tamagochy Posted September 17, 2018 Share Posted September 17, 2018 With vex you can use relbbox function. Quote Link to comment Share on other sites More sharing options...
eF_eX Posted September 17, 2018 Author Share Posted September 17, 2018 Thanks that clears things up. The only thing i don't quite get now is functions like bbox will not become legacy, is that how i can understand this? Because this was the only reason why i did even look into the other stuff. 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.