ejr32123 87 Posted August 31, 2018 (edited) 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 Edited September 4, 2018 by ejr32123 Share this post Link to post Share on other sites
pxptpw 23 Posted September 1, 2018 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
ejr32123 87 Posted September 1, 2018 The question was how to align it perfectly. Share this post Link to post Share on other sites
Atom 1,209 Posted September 1, 2018 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. ap_move_line_along_direction.hiplc 1 Share this post Link to post Share on other sites
ejr32123 87 Posted September 2, 2018 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
pabcou 10 Posted September 3, 2018 (edited) 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 September 3, 2018 by pabcou 1 2 Share this post Link to post Share on other sites
ejr32123 87 Posted September 3, 2018 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
ejr32123 87 Posted September 4, 2018 (edited) 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 September 4, 2018 by ejr32123 Share this post Link to post Share on other sites