[chimera-dev] Chimera Model Panel Grouping
Eric Pettersen
pett at cgl.ucsf.edu
Fri May 20 10:40:25 PDT 2016
Hi Taylor,
Yes, there is a way to programmatically group things in the model panel. It’s ModelPanel.groupCmd(items, name=None). The items can be models and/or groups. It returns the new group formed. You should probably provide the ‘name’ argument, since otherwise it’s possible the user would be prompted for the name. If there’s no particularly obvious name for you to use, you can use ModelPanel.defaultGroupName(items) to generate one.
—Eric
Eric Pettersen
UCSF Computer Graphics Lab
> On May 19, 2016, at 5:51 PM, Taylor Gerpheide <tgerp001 at odu.edu> wrote:
>
> I'm working on an extension which needs to be able to group certain open models like the model panel does. Is there a way to utilize the group function in the model panel from an extension in python?
>
> Thank you,
> Taylor
> _______________________________________________
> Chimera-dev mailing list
> Chimera-dev at cgl.ucsf.edu
> http://www.rbvi.ucsf.edu/mailman/listinfo/chimera-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20160520/fa3ee9b7/attachment.html>
More information about the Chimera-dev
mailing list