<div dir="ltr">Thank you! That worked perfectly.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 20, 2016 at 1:40 PM, Eric Pettersen <span dir="ltr"><<a href="mailto:pett@cgl.ucsf.edu" target="_blank">pett@cgl.ucsf.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Taylor,<div><span style="white-space:pre-wrap"> </span>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.</div><div><br></div><div>—Eric</div><div><br><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div><span style="white-space:pre-wrap"> </span>Eric Pettersen</div><div><span style="white-space:pre-wrap"> </span>UCSF Computer Graphics Lab</div><div><br></div></div></div><div><blockquote type="cite"><div><div class="h5"><div>On May 19, 2016, at 5:51 PM, Taylor Gerpheide <<a href="mailto:tgerp001@odu.edu" target="_blank">tgerp001@odu.edu</a>> wrote:</div><br></div></div><div><div><div class="h5"><div dir="ltr">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?<div><br></div><div>Thank you,</div><div>Taylor</div></div></div></div>
_______________________________________________<br>Chimera-dev mailing list<br><a href="mailto:Chimera-dev@cgl.ucsf.edu" target="_blank">Chimera-dev@cgl.ucsf.edu</a><br><a href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev" target="_blank">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev</a><br></div></blockquote></div><br></div></div></blockquote></div><br></div>