<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">For what I imagine are the very few people who have written extensions that save their state into sessions and that restore their own models from sessions, you should know that I have added a variable to the SimpleSession module named "modelOffset". During a normal session restore, modelOffset is zero. During a session restore where pre-existing models haven't been closed (i.e. the session is being "merged" with the current models) modelOffset is a positive integer that should be added to restored model IDs (not sub-IDs) to avoid collision with currently-open models. This is explained in further detail in the Programmer's Guide example for sessions:<DIV><BR class="khtml-block-placeholder"></DIV><DIV><A href="http://www.cgl.ucsf.edu/chimera/docs/ProgrammersGuide/Examples/Main_SessionSave.html">http://www.cgl.ucsf.edu/chimera/docs/ProgrammersGuide/Examples/Main_SessionSave.html</A></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Let me know if anything is unclear...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>--Eric</DIV><BR><BR><DIV> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="5" style="font: 16.0px Helvetica"><SPAN class="Apple-converted-space"> </SPAN>Eric Pettersen</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="5" style="font: 16.0px Helvetica"><SPAN class="Apple-converted-space"> </SPAN>UCSF Computer Graphics Lab</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="5" style="font: 16.0px Helvetica"><SPAN class="Apple-converted-space"> </SPAN><A href="mailto:pett@cgl.ucsf.edu">pett@cgl.ucsf.edu</A></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="5" style="font: 16.0px Helvetica"><SPAN class="Apple-converted-space"> </SPAN><A href="http://www.cgl.ucsf.edu">http://www.cgl.ucsf.edu</A></FONT></P> <BR class="Apple-interchange-newline"> </DIV><BR></BODY></HTML>