Jump to content

Adjust the direction of the box to the direction of the plane.


yam

Recommended Posts

  • yam changed the title to Adjust the direction of the box to the direction of the plane.
  • 2 months later...

you can for example CopytoPoints SOP the Box (axis aligned), to the center of the the plane (one primitive), 

All you need to do if compute some orientation, depending on what your workflow looks like at this point. It may already even exist

Read carefully this:

https://www.sidefx.com/docs/houdini/copy/instanceattrs.html

and find an attribute that you can compute.

Useful tips:

In primitive wrangle, @P evaluates to the center of the prim

int np = addpoint(0,@P) give you the center.

The normal is trivial to compute, it's either in @N or in prim_normal()

All you need is the third vector, it could be a vector computed from two adjacent points on the primitive..

Link to comment
Share on other sites

On 11/11/2024 at 8:44 AM, yam said:

I want to layout box which rotate direction same as plane. 

plane`s small length direction is same as box small length direction 

 how to do it?

hip file please. help me

test.jpg

Just use bound sop, and turn on "oriented box" option 

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