Jump to content

spinning bottle horizontal


csp

Recommended Posts

hello, I am trying to have a procedural animation of bottle spinning horizontal, I have a hip attached to demonstrate that. As you can see inside the hip I have a point where its normal vector is in spiral motion and I copy a tube to that point and everything works fine. Also it will calculate the distance of the ground based on the angle of the bottle but what is missing is the actual rotation of the tube in his y axis which should be based on the angle of the point's normal. Any idea?

spin_tube.hip

Edited by cparliaros
Link to comment
Share on other sites

Add the vector attribute "up" to the point you're copying the cylinder to with a value of "0,1,0" This is your 'up vector' which you need to have an up orientation to go with your velocity direction. I had to use that a lot when instancing creatures back in my old Maya days.

The only hint to this solution is in the upvector POP.

Link to comment
Share on other sites

  • 2 months later...

Kleer001, I was just looking through this post. I haven't set this up before can you elaborate on how and where to add the up vector. Are you doing this by adding in a upvector Pop or creating an attribute named "up" and then how are you applying this to the point? A little more guidance and I think I got it.

Link to comment
Share on other sites

Kleer001, I was just looking through this post. I haven't set this up before can you elaborate on how and where to add the up vector. Are you doing this by adding in a upvector Pop or creating an attribute named "up" and then how are you applying this to the point? A little more guidance and I think I got it.

Apply the vector "up" to the points you're copying geometry to, the points that go on the right side of the copy SOP. You can do that however you see fit. It's that "up" like "N" or "pscale" is recognized by Houdini and does a specific thing in the copy SOP process.

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