breadbox Posted April 27, 2011 Share Posted April 27, 2011 how to write the proper syntax for combining a range of groups in a combine group node. i tried this: copyGroup1-10 copyGroup[1-10] neither worked. here is my test scene. GroupCombine.hipnc Quote Link to comment Share on other sites More sharing options...
breadbox Posted May 10, 2011 Author Share Posted May 10, 2011 still trying to figure the syntax on this one. tried a couple more options in this file. any syntax help on this would be appreciated. tried to look up in the help but was unable to find anything that led me down the right path. the "[]" seemed like it was useful but its not quite doing what i need it to do. GroupCombine_V2.hipnc Quote Link to comment Share on other sites More sharing options...
old school Posted May 11, 2011 Share Posted May 11, 2011 In the Group SOP that just uses wildcards (copyGroup*), you have the "Not Equal" icon selected. If you change that to the "Equal" option does that not do what you want? If I do that then it matches your manually constructed group string. Quote Link to comment Share on other sites More sharing options...
breadbox Posted May 11, 2011 Author Share Posted May 11, 2011 In the Group SOP that just uses wildcards (copyGroup*), you have the "Not Equal" icon selected. If you change that to the "Equal" option does that not do what you want? If I do that then it matches your manually constructed group string. Bah dumb mistake on my part. I think that does it. But would still be interested in ranges of groups. so the wildcard might not work in that case. say I had 100 groups and wanted to only group 20-50. would the brackets be the way to do that? Quote Link to comment Share on other sites More sharing options...
old school Posted May 11, 2011 Share Posted May 11, 2011 Yes square brackets with number ranges is the way to go: copyGroup[20-50] Quote Link to comment Share on other sites More sharing options...
breadbox Posted May 11, 2011 Author Share Posted May 11, 2011 Yes square brackets with number ranges is the way to go: copyGroup[20-50] when i try that it looks like it only goups group0, group2, and group5 GroupCombine_V3.hipnc Quote Link to comment Share on other sites More sharing options...
old school Posted May 11, 2011 Share Posted May 11, 2011 I took your example and bumped it up to 100 groups as you mentioned then did that. In your existing file trying copyGroup[1-3] should work as expected. Quote Link to comment Share on other sites More sharing options...
breadbox Posted May 13, 2011 Author Share Posted May 13, 2011 I took your example and bumped it up to 100 groups as you mentioned then did that. In your existing file trying copyGroup[1-3] should work as expected. I dunno I'm sure its just me.. coming from such a respected source as yourself. but here is a screen of whats happening. I hate to bother people with such simple questions. I'm trying I promise. Quote Link to comment Share on other sites More sharing options...
Octo Posted March 25, 2015 Share Posted March 25, 2015 Hate to bump this ancient thread but as mentioned, using "group[10-40]" only gives you group 1, 0 and 4 If you're lucky that is...It seems unreliable so I suppose it's not the right method. So, How do you use a range of groups? I have group0 to group100 and I want to blast 0-49. Or could opdigits be used here...how do you set a range for that? Cheers. Quote Link to comment Share on other sites More sharing options...
qral Posted August 26, 2015 Share Posted August 26, 2015 "using "group[10-40]" only gives you group 1, 0 and 4" I have the same problem! - Rasmus Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted August 26, 2015 Share Posted August 26, 2015 (edited) If you can promote group membership into attribute, than maybe you could use string matching to select groups? For example, below will group every group from 20-69 but not 23 or 40: strmatch("2?, 3?, 4?, 5?, 6?, ^23, ^40", $CLASS) if you put it into Group by Expression field. EDIT: This seems to work too: strmatch("[2346]?, ^23, ^40", $CLASS) Edited August 26, 2015 by fântastîque Mântragorîè 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.