<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Kevin,<br>
<br>
Another trick to animate bonds appearing and disappearing is to
use the movie crossfade command. This allows you to fade between
any two scenes. So you start with a bond showing, then use<br>
<br>
movie crossfade frames 25<br>
<br>
and the following command undisplays the bond. This will cause the
movie to fade between the bond shown and bond hidden state over 25
frames. In general it fades between the scene as it appeared just
before the command to the scene just after the next command is
executed. The fade does not appear on-screen -- only in the
recorded movie.<br>
<br>
Tom<br>
<br>
<blockquote
cite="mid:AB33EA10-BE4C-4DC5-80E5-4674336FC5CD@cgl.ucsf.edu"
type="cite">
<div>
<div>On Feb 21, 2012, at 11:25 AM, Elaine Meng wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0);
font-family: Helvetica; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align: -webkit-auto;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px;
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; font-size: medium; "><span class="Apple-style-span"
style="font-family: monospace; ">setattr p color 1,0,0,.5<br>
setattr p display 0<br>
<br>
... where you could put the atomspec of the two endpoint
atoms at the end of each command to control only that
pseudobond, instead of all pseudobonds.<br>
</span></span></blockquote>
<br>
</div>
<div>If you don't like the way the change in transparency looks,
another alternative is to have the breaking bond become
gradually thinner (attribute "radius") while the forming bond
becomes thicker.</div>
<div><br>
</div>
<div>It's just as awkward to script because you would need a
setattr command each frame the motion is happening (luckily it's
easy to have motions go on as other commands are executed, just
don't use a "wait" command after the motion command).</div>
<div><br>
</div>
<div>--Eric</div>
<br>
<div apple-content-edited="true"> <span class="Apple-style-span"
style="border-collapse: separate; border-spacing: 0px 0px;
color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; text-align: auto;
-khtml-text-decorations-in-effect: none; text-indent: 0px;
-apple-text-size-adjust: auto; text-transform: none; orphans:
2; white-space: normal; widows: 2; word-spacing: 0px; ">
<div style="word-wrap: break-word; -khtml-nbsp-mode: space;
-khtml-line-break: after-white-space; ">
<p style="margin: 0.0px 0.0px 0.0px 0.0px"><font
style="font: 16.0px Helvetica" face="Helvetica" size="5"><span
class="Apple-converted-space"> <span
class="Apple-converted-space"> </span></span>Eric
Pettersen</font></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px"><font
style="font: 16.0px Helvetica" face="Helvetica" size="5"><span
class="Apple-converted-space"> <span
class="Apple-converted-space"> </span></span>UCSF
Computer Graphics Lab</font></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px"><font
style="font: 16.0px Helvetica" face="Helvetica" size="5"><span
class="Apple-converted-space"> </span><a
moz-do-not-send="true" href="http://www.cgl.ucsf.edu">http://www.cgl.ucsf.edu</a></font></p>
<br class="Apple-interchange-newline">
</div>
</span> </div>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Chimera-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Chimera-users@cgl.ucsf.edu">Chimera-users@cgl.ucsf.edu</a>
<a class="moz-txt-link-freetext" href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users</a>
</pre>
</blockquote>
<br>
<br>
</body>
</html>