Jump to content

finding the details


Recommended Posts

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

Link to comment
Share on other sites

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

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