philippecounter Posted April 11, 2024 Share Posted April 11, 2024 Hello I need to use a copy to points after a rbd sim, but it doesn't work... Any idea ? For the test, i made a simple simulation with a pig head, then create points from the simulation, and when i copy to point the same pighead, it's not working. (blue head are from the simulation, red one are the one i tried to copy on it...) The only way i can have the correct position, is by unchecked "transform using target point orientations", but then, i loose the rotation/orientation.... pig.hiplc Quote Link to comment Share on other sites More sharing options...
Librarian Posted April 11, 2024 Share Posted April 11, 2024 @philippecounter try to Delete After import Pivot attribute on points . Quote Link to comment Share on other sites More sharing options...
philippecounter Posted April 11, 2024 Author Share Posted April 11, 2024 It doesn't work Quote Link to comment Share on other sites More sharing options...
Librarian Posted April 11, 2024 Share Posted April 11, 2024 If you don't wont to search here on Forum here its File's on various ex how to extract and explanation . Quote Link to comment Share on other sites More sharing options...
philippecounter Posted April 11, 2024 Author Share Posted April 11, 2024 Thank you, i will look at it Quote Link to comment Share on other sites More sharing options...
Aizatulin Posted April 11, 2024 Share Posted April 11, 2024 (edited) It looks like, that you have to use "restxform" and "rest" attribute. It seems, that you have to reset orient (but applying the rotation from restxform first) and the pivot should be modified by rest attribute and difference of the translation from restxform and the rest (but multplied with the inverted rotation of restxform). I'm pretty sure, that there must be a simpler way but I don't know ... pig_mod.hipnc Edited April 11, 2024 by Aizatulin 1 Quote Link to comment Share on other sites More sharing options...
hannes603 Posted April 11, 2024 Share Posted April 11, 2024 9 minutes ago, Aizatulin said: It looks like, that you have to use "restxform" and "rest" attribute. It seems, that you have to reset orient (but applying the rotation from restxform first) and the pivot should be modified by rest attribute and difference of the translation from restxform and the rest (but multplied with the inverted rotation of restxform). I'm pretty sure, that there must be a simpler way but I don't know ... pig_mod.hipnc 324.68 kB · 0 downloads transform pieces, isnt that whats you trying to do ? pig (1).hiplc 1 Quote Link to comment Share on other sites More sharing options...
Aizatulin Posted April 11, 2024 Share Posted April 11, 2024 @hannes603 I would say yes, but maybe it is a bit more complicated to get similar behaviour, if you want to use a copytopoints node. But probably it is no problem. Quote Link to comment Share on other sites More sharing options...
paranoidx Posted May 4, 2024 Share Posted May 4, 2024 On 4/11/2024 at 2:39 PM, philippecounter said: Hello I need to use a copy to points after a rbd sim, but it doesn't work... Any idea ? For the test, i made a simple simulation with a pig head, then create points from the simulation, and when i copy to point the same pighead, it's not working. (blue head are from the simulation, red one are the one i tried to copy on it...) The only way i can have the correct position, is by unchecked "transform using target point orientations", but then, i loose the rotation/orientation.... pig.hiplc 321.86 kB · 6 downloads You need a transform with a pivot to do that, there are couple ways however I just try to do what you already set up there. I store both attributes @transform matrix3 + @pivot from packed DOP IO. Then copy it over the "copy to point" result. Re-apply the matrix. File attached pig_copy_to_pts_transform_matrix_vp.hiplc 1 Quote Link to comment Share on other sites More sharing options...
lavrenovlad Posted November 1, 2024 Share Posted November 1, 2024 Thank y'all for the example files, very useful! 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.