dbukovec Posted September 8, 2010 Share Posted September 8, 2010 hi! I have this branch with a list of groups piece0, piece1, piece2...say until piece10 Now I have a second branch with the same group naming. How can I merge the two branches so that the second branch groups will get the numbering from 11, so i would have 20 primitive groups. So simply, can i rename groups to start from a certain number? Thanks a lot! Quote Link to comment Share on other sites More sharing options...
hopbin9 Posted September 8, 2010 Share Posted September 8, 2010 (edited) hi! I have this branch with a list of groups piece0, piece1, piece2...say until piece10 Now I have a second branch with the same group naming. How can I merge the two branches so that the second branch groups will get the numbering from 11, so i would have 20 primitive groups. So simply, can i rename groups to start from a certain number? Thanks a lot! Hi, You can rename groups, but you can not renumber them. You'll have to regroup them again. It doesn't matter if they are already grouped. To regroup them you will have to recreate the groups. You can do it by the following steps. - "merge" the two branches - add a "Group Geometry" to place all the primitives into one group called "temp". - go to the "Edit" tab, and then the "Delete" tab, and enter the group pattern "piece*". - you will now have 20 primitives in a group called "temp", and the old misnamed "piece0-9" groups have been deleted. - add a "Partition" node, and in the "rule" enter "piece$PT". This will group all the primitives using that pattern. You've now renumbered your groups. Hope that helps Edited September 8, 2010 by hopbin9 Quote Link to comment Share on other sites More sharing options...
dbukovec Posted September 8, 2010 Author Share Posted September 8, 2010 thanks for the response, but your method at the end is wrong, if i enter piece$PT, i will get as many groups as many poinst i have Quote Link to comment Share on other sites More sharing options...
hopbin9 Posted September 8, 2010 Share Posted September 8, 2010 I did a test using spheres, and it worked for me. Maybe it's cause I kept the spheres as primitives. I'll give it a try again using meshes. Quote Link to comment Share on other sites More sharing options...
dbukovec Posted September 8, 2010 Author Share Posted September 8, 2010 Friend helped solve this, but thanks a lot for your efforts! Quote Link to comment Share on other sites More sharing options...
hopbin9 Posted September 8, 2010 Share Posted September 8, 2010 Can you post the solution. I'm still in the early learning stages of Houdini. Quote Link to comment Share on other sites More sharing options...
dbukovec Posted September 9, 2010 Author Share Posted September 9, 2010 sure, here it is. renameGroups.hipnc Quote Link to comment Share on other sites More sharing options...
dbukovec Posted September 9, 2010 Author Share Posted September 9, 2010 I also added an expression to the New Start field which counts the number of prim groups produced by the first voronoi asset, substracted 2 because it also produces inside and outside groups. 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.