Hello world Posted July 9, 2011 Share Posted July 9, 2011 hi im beginning with houdini how to find the height of the the geo or obj for eg. i have drawn a curve and attached a box to it. if i middle click that i can see the sizex y and z of the the curve which is connected to the bounding box how to use the values of those in a attribute Quote Link to comment Share on other sites More sharing options...
Erik_JE Posted July 9, 2011 Share Posted July 9, 2011 What values do you want to use as an attribute exactly? You can use the bbox hscript function to get properties of the boundingbox for an object. http://www.sidefx.com/docs/houdini11.0/expressions/bbox Quote Link to comment Share on other sites More sharing options...
tmdag Posted July 9, 2011 Share Posted July 9, 2011 I am not sure if this is what you meant. sizeAttr.hip 1 Quote Link to comment Share on other sites More sharing options...
zarti Posted July 9, 2011 Share Posted July 9, 2011 hi im beginning with houdini how to find the height of the the geo or obj for eg. i have drawn a curve and attached a box to it. if i middle click that i can see the sizex y and z of the the curve which is connected to the bounding box how to use the values of those in a attribute hi and welcome ! , whenever you need to refer to curve's width ( sizex ) , you can use this expression : bbox("../curve1", D_XSIZE). replacing D_XSIZE with D_YSIZE or D_ZSIZE wd give you respectively its height ( sizey ) and depth ( sizez ). the values you see when you middle-click aren't attributes yet . just info . creating attributes with those values wd reduce the need to put the expressions above every time you need those . add AttribCreate SOPs and put the same expressions on the "Value" input fields . from that point , whatever you named the attribute ( in the Name input field ) , wd be easily available for you . example : > add an Attribcreate sop after the Curve sop . > assign ' width ' as a name and ' bbox("../curve1", D_XSIZE) ' as the first value > add a Box sop after that . > use $WIDTH in the Box sop 'sizex' input field .( its width now should be the same as that of the Curve sop . ) warning ! always in capital fonts and do not forget to give that dollar first ! yes , he needs to see the money first .. =) .cheers Quote Link to comment Share on other sites More sharing options...
Hello world Posted July 9, 2011 Author Share Posted July 9, 2011 awesome!thank you very much guys 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.