Hi Jordan -
Grouped object names use dots to indicate group inheritance ("groupA.obj1"), so
maybe try something like this:
```
from pymol import stored
stored.group_names = []
group_name = "groupA"
for obj in cmd.get_names():
if obj[0:len(group_name)] == group_name:
# either add them to a list to use later
stored.group_names.append(obj)
# or run your `iterate` command here
#cmd.iterate(...)
print sorted(stored.group_names)
```
For me the printed dummy output looks like:
['groupA', 'groupA.obj1', 'groupA.obj2', ... ]
Hope that helps.
Cheers,
Jared
> On Jan 25, 2016, at 2:34 PM, Jordan Willis <[email protected]> wrote:
>
> Hi,
>
> Is there a way to iterate through the names that have been grouped?
>
> iterate <groupName>
>
> doesn’t seem to do it because it kills my pymol app.
>
> Jordan
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> PyMOL-users mailing list ([email protected])
> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> Archives: http://www.mail-archive.com/[email protected]
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
PyMOL-users mailing list ([email protected])
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/[email protected]