michael Posted October 8, 2014 Share Posted October 8, 2014 hey Lets say I have a large number of groups in object A and an equal sized group in object B - the individual groups are in very nearly the same locations... the groups are both named myGroup_### but the order is different - myGroup_132 in object A doesn't correspond to myGroup_132 in object B is there a way to rename/reorder one of the groups to match the other? Quote Link to comment Share on other sites More sharing options...
edward Posted October 8, 2014 Share Posted October 8, 2014 So in the case that your two corresponding groups are not identical, how do you want to handle that? Offhand, I would try the GroupTransfer SOP, possibly naming the destination groups with a different prefix and the figuring out some way to match the groups together on the destination geometry. Another idea is to convert the groups into a "name" attribute where the value of the attribute is the name of the group, now AttribTransfer this over and then convert from the attribute back to a group. Quote Link to comment Share on other sites More sharing options...
michael Posted October 8, 2014 Author Share Posted October 8, 2014 grouptransfer seems promising but just didn't work out... the name attribute idea did occur to me late last night...I'll give it a try... Quote Link to comment Share on other sites More sharing options...
michael Posted October 10, 2014 Author Share Posted October 10, 2014 Here is a simple example file group_reorder.1.hip Quote Link to comment Share on other sites More sharing options...
Tesla's fan Posted October 12, 2014 Share Posted October 12, 2014 Do u mean this? group_reorder_fix_1.hip Quote Link to comment Share on other sites More sharing options...
michael Posted October 12, 2014 Author Share Posted October 12, 2014 ooOOO...very clever... I have a VERY difficult example file at work...I'll test his out on Tuesday... thanks. Quote Link to comment Share on other sites More sharing options...
michael Posted October 14, 2014 Author Share Posted October 14, 2014 ah..nope this wont work... pretend in the eg file that the copy SOP isn't there... as if the two geometries are from file SOPs Quote Link to comment Share on other sites More sharing options...
Tesla's fan Posted October 15, 2014 Share Posted October 15, 2014 just use grouptransfer node all right. group_reorder.1_grpTrans.hip Quote Link to comment Share on other sites More sharing options...
Tesla's fan Posted October 15, 2014 Share Posted October 15, 2014 (edited) This file is not optimized, so the efficiency is very low. I just provide a way for you. You may want to use VEX or CVEX to rewrite it. group_reorder_another_solution.rar Edited October 15, 2014 by aty84122 Quote Link to comment Share on other sites More sharing options...
michael Posted October 15, 2014 Author Share Posted October 15, 2014 thanks... the groupTransfer works on very simple cases (as it should) but in more complex cases (as they all tend to be) with overlapping geometry etc it just doesn't work... your second solution is much better... 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.