Jump to content
ejr32123

Align pivot rotation to line [solved]

Recommended Posts

Hey,

I have a line that I would like to transform in the direction of the curve. How can I rotate the pivot rotation to match the line? I am trying to match the Z axis to the line by rotation the pivot rotation y.

Thanks

transform.PNG

Edited by ejr32123

Share this post


Link to post
Share on other sites

not sure if i understood the question right but to rotate the pivot you can press the insert key to change the rotation to the desired axis

Share this post


Link to post
Share on other sites

You can just grab both end points and subtract them. This will give you an offset vector to slide the line along. Not really an answer for the pivot, but covers your first sentence request.

move_line.gif

ap_move_line_along_direction.hiplc

  • Like 1

Share this post


Link to post
Share on other sites

thanks for the ideas. I actually have the transform on another piece of geo that I want to move in the direction of this line.

Share this post


Link to post
Share on other sites

I think this may do what you need:

1. Template the reference geometry (in your case, the line)
2. Select the Transform SOP and display the handle
3. Enter Pivot Mode [Ins]
4. Start Orientation Picking [;]
5. RMB on the Viewport > "Use Extended Mode"
6. Determine which two points (P, Q) on the reference geo will define the Z axis of the pivot (the pivot will be placed on P)
7. Shift-LMB on the Q point, then LMB on the P point
8. Exit Pivot Mode [Ins]

Edited by pabcou
  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites
5 hours ago, pabcou said:

I think this may do what you need:

1. Template the reference geometry (in your case, the line)
2. Select the Transform SOP and display the handle
3. Enter Pivot Mode [Ins]
4. Start Orientation Picking [;]
5. RMB on the Viewport > "Use Extended Mode"
6. Determine which two points (P, Q) on the reference geo will define the Z axis of the pivot (the pivot will be placed on P)
7. Shift-LMB on the Q point, then LMB on the P point
8. Exit Pivot Mode [Ins]

cheers! I didnt even know you could do this!!! thanks

Share this post


Link to post
Share on other sites

I figured out a solution that works really well. On my curve/ line use poly frame. For tangent name use N.  I create a transform axis node on the object I want to transform. Just copy the Normal values to the Direction of the transform axis. Then you can animate the translate value!

Edited by ejr32123

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×