Proteopedia:DIY:Macros

From Proteopedia

(Difference between revisions)
Jump to: navigation, search
m (fix text)
Current revision (20:46, 7 August 2025) (edit) (undo)
 
Line 123: Line 123:
</jmol>
</jmol>
 +
 +
'''Example #4: color selection by B-factor'''
 +
 +
Example code:
 +
 +
<pre>
 +
<jmol>
 +
<jmolLink>
 +
<script>script /mc/aherraez.spt;putty({protein})</script>
 +
<text>apply putty</text>
 +
</jmolLink>
 +
</jmol>
 +
</pre>
 +
 +
You can try the result here:<br/>
 +
<jmol>
 +
<jmolLink>
 +
<script>script /mc/aherraez.spt;putty({protein})</script>
 +
<text>apply putty</text>
 +
</jmolLink>
 +
</jmol>

Current revision

Macros as a tool

Macros can be used in Proteopedia pages to call commonly used JSmol code. Macro functions can take parameters so that the code is general but can act on the specified item or items. Additional macros can be made.

This page is meant to be a resource for finding and using macros.

Structure of myoglobin in complex with heme and oxygen

Drag the structure with the mouse to rotate

Proteopedia Page Contributors and Editors (what is this?)

Wayne Decatur, Jaime Prilusky

Personal tools