Jump to content

Is there a way to get a combined group in Python?


Recommended Posts

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 by magneto
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...