yam Posted November 11, 2024 Share Posted November 11, 2024 (edited) 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 Edited November 11, 2024 by yam Quote Link to comment Share on other sites More sharing options...
AntoineSfx Posted 22 hours ago Share Posted 22 hours ago 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.. Quote Link to comment Share on other sites More sharing options...
Zunder Posted 25 minutes ago Share Posted 25 minutes ago 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 Just use bound sop, and turn on "oriented box" option 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.