raven0us Posted January 13, 2011 Share Posted January 13, 2011 Hi I have to copy multiple objects back to points that were derived from these objects center. Can someone kindly show me how.... Please see attached file. particleCopy.hipnc Quote Link to comment Share on other sites More sharing options...
hopbin9 Posted January 13, 2011 Share Posted January 13, 2011 Hi I have to copy multiple objects back to points that were derived from these objects center. Can someone kindly show me how.... Please see attached file. I don't think I understand your problem. You connect the output of the object you want to copy to the first input on the Copy SOP. Quote Link to comment Share on other sites More sharing options...
anim Posted January 13, 2011 Share Posted January 13, 2011 here is one possible way particleCopy_fix.hipnc Quote Link to comment Share on other sites More sharing options...
raven0us Posted January 13, 2011 Author Share Posted January 13, 2011 here is one possible way Thanks a lot anim. Works even if more objects are added. Which is what I need. Your solution is amazing. Thank you so much. hopbin9 ... I could use a switch sop with stamp expression choosing the input. But switch sop needs all objects feeding into it as separate nodes. I want this to work on lots of objects. If you connect the object_merge sop (green) into the copy1 sop (red) directly it wouldn't work. The effect is a simple logo that disintegrates into different shapes. Quote Link to comment Share on other sites More sharing options...
Netvudu Posted January 14, 2011 Share Posted January 14, 2011 I didn´t try this yet,but I guess another way would be having your objects with the same name, but a number prefix, sort of "Object01_blabla$F3.bgeo", loading with a File and change that initial "01" with a stamp expression. That way you wouldn´t need a Switch. Quote Link to comment Share on other sites More sharing options...
raven0us Posted January 14, 2011 Author Share Posted January 14, 2011 I didn´t try this yet,but I guess another way would be having your objects with the same name, but a number prefix, sort of "Object01_blabla$F3.bgeo", loading with a File and change that initial "01" with a stamp expression. That way you wouldn´t need a Switch. Thanks Netvudu. attached file WIP so far. I guess I'll move on to the logo and shapes (flowers,butterflies) now. If there is a better/alternate way let me know. Thanks a lot particlCopy06.hipnc Quote Link to comment Share on other sites More sharing options...
sanostol Posted January 15, 2011 Share Posted January 15, 2011 Hi I have a slighly different solution for You. instead of using copySOP, i use a vopSOP, because it is fast and multithreaded. I had a similar problem some time ago and copying 5000 different geometry peaces was simply to slow. So I attached each geometry a id attribute that points to the particle that is driving it. later I use this id to get the particle position and added it to the point position. in my case i used used the full transform of the particle by importing position, orientation, and scale of the particle and the mulitplying the pointpositions of the object by that matrix. but in You case there is only a position available hope it may help you Martint particleTransform.hipnc Quote Link to comment Share on other sites More sharing options...
raven0us Posted January 17, 2011 Author Share Posted January 17, 2011 Hi I have a slighly different solution for You. instead of using copySOP, i use a vopSOP, because it is fast and multithreaded. I had a similar problem some time ago and copying 5000 different geometry peaces was simply to slow. So I attached each geometry a id attribute that points to the particle that is driving it. later I use this id to get the particle position and added it to the point position. in my case i used used the full transform of the particle by importing position, orientation, and scale of the particle and the mulitplying the pointpositions of the object by that matrix. but in You case there is only a position available hope it may help you Martint Thanks a lot sanostol.Copy was slowing down considerably. Works nicely now. 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.