GlennimusPrime Posted February 7, 2023 Share Posted February 7, 2023 (edited) I have two objects. One with velocity vectors. I need to copy those same vectors onto the duplicate object on the left. (it is now animated and moving). If I use the Attribute Copy SOP, the vectors do in fact copy to the other object, but they still aim toward their original direction. How can I copy vectors from object A onto object B and retain the correct direction according to the transform of object B? A simplified version of my master scene is attached: transfer_v.hiplc Edited February 8, 2023 by GlennimusPrime Quote Link to comment Share on other sites More sharing options...
islamoos Posted February 7, 2023 Share Posted February 7, 2023 You can output the transformational matrix from the transform node and then use a wrangle to rotate @v based on that matrix. Here ya go transfer_v_FIX.hiplc Quote Link to comment Share on other sites More sharing options...
uakin Posted February 7, 2023 Share Posted February 7, 2023 You can use "transform piece" Quote Link to comment Share on other sites More sharing options...
GlennimusPrime Posted February 7, 2023 Author Share Posted February 7, 2023 (edited) @islamoos @uakin Thank you for these solutions, although I now realise my issue is a little more complex. I simplified my original setup too much. The problem is not with an overall transform, but rather vellum hair curve directions. You can see here the copied velocity vectors remain aiming left / right, instead of sticking with the animated direction of each vellum hair curve. How can I transfer the animated velocity vectors from the static hair curves onto the now animated vellum hair curves? This is a tough one! new .hip file attached: transfer_v_complex_version.hiplc Edited February 7, 2023 by GlennimusPrime Quote Link to comment Share on other sites More sharing options...
islamoos Posted February 8, 2023 Share Posted February 8, 2023 @GlennimusPrime It's a bit more involved but still just matrices. Cheers transfer_v_complex_version_FIX.hiplc 1 1 Quote Link to comment Share on other sites More sharing options...
GlennimusPrime Posted February 8, 2023 Author Share Posted February 8, 2023 @islamoos AMAZING! Thank you so much for this. I wouldn't have gotten there myself. Currently pouring through your VEX. Always keen to learn more! 1 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.