Gabriel_Wolf Posted November 26, 2019 Share Posted November 26, 2019 Hello, Can you please help me a little bit? Lets say I have 8 points. four them are simulated. You can see them in the green circle. And I have another 4 close to them which are static points? You can see them in the red circles. How can I copy the movement of the animated point to the static points? I tried with attribute transfer in a solver node but I'm sure I made something wrong because it didn't work. Thank you Gabor Quote Link to comment Share on other sites More sharing options...
jimeng20 Posted November 26, 2019 Share Posted November 26, 2019 I don't know what do you mean "transfer the animation", do you want to transfer over the velocity from the point has same name/id attribute and advect the point position by the velocity? If so, you can try something like int pt = findattribval(1, "point", "id", @id); vector vel = point(1, "v", pt); @P += vel * @TimeInc ; So this will grab the velocity attribute from the animated points with the same id attribute. But make sure the four points you want to transfer the velocity. If you want to grab the nearest point's velocity and advect the point position, you can try something like int pt = nearpoint(1,@P); vector vel = point(1,"v",pt); @P += vel * @TimeInc ; Or you want to constrain your static point to your animated point, that's a slightly complicated case. Hope this will help. Quote Link to comment Share on other sites More sharing options...
Gabriel_Wolf Posted November 26, 2019 Author Share Posted November 26, 2019 Thank you for your help. The transfer animation for me like, the 4 animated points moving continously. I would like to take that movement and copy to the static points. So the stacis points won't be static anymore and they will move exactly same like the animated points. Maybe I can't explain well but do you get it now? Quote Link to comment Share on other sites More sharing options...
woodenduck Posted November 27, 2019 Share Posted November 27, 2019 in a wrangle. Plug static points in to input1 and animated points in to input2 @P = point(1, "P", @ptnum); Quote Link to comment Share on other sites More sharing options...
Gabriel_Wolf Posted November 27, 2019 Author Share Posted November 27, 2019 Thank you. I will try that. 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.