magneto Posted April 6, 2013 Share Posted April 6, 2013 (edited) Hi, If you have a Group parameter that has a content like this: primgroup1 primgroup2 2 4 6 10-20 How would you get a single primitive group that contains all of these primitives? Do you have to split the string and then check if there is a primitive group with that name and then add them together? And in the case of numbers, should you just check if they are numbers, and if so, then add them directly? Also the values that represent a range will have to be handled differently. I thought I would ask to see if there is a simple function that would do this. If not, maybe there is a better way to do this? Thanks Edited April 6, 2013 by magneto Quote Link to comment Share on other sites More sharing options...
graham Posted April 6, 2013 Share Posted April 6, 2013 Generally you would pass your group parameter pattern to hou.Geometry.globPrims() which will parse it and return a tuple of all the primitives that match. 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted April 6, 2013 Author Share Posted April 6, 2013 Thanks Graham, that does what I want 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.