groups in SOPs - add/remove using python

   1914   1   0
User Avatar
Member
201 posts
Joined: July 2005
Offline
I want to be able to add/remove groups in a delete SOP using python.

Specifically, if I have two groups already specified in the parameter and want to add another, is there a function to do this? And vice versa … only remove a specific group from a list of groups?

Thanks in advance
Cheers,
Rob
Digital Supervisor | Stargate Studios Toronto
User Avatar
Member
7732 posts
Joined: July 2005
Online
If you have a string, then you can use the python split() function to convert it into a list (using space as a separator) that you can manipulate. When done, you can then use the python join() function to combine the list back into a string.
  • Quick Links