Jmol/Interactivity: Difference between revisions

From Proteopedia
Jump to navigationJump to search
Karsten Theis (talk | contribs)
No edit summary
Karsten Theis (talk | contribs)
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 83: Line 83:
Again, you can use a template to type less:
Again, you can use a template to type less:
  <nowiki>
  <nowiki>
{{subst:Hide button|ATP and metals|(ligand or ATP)}}</nowiki>
{{subst:Hide button|ligand or ATP|(ligand or ATP)}}</nowiki>
 
{{Checkbox hide unhide|Name="ATP molecule"|Selection="ATP"}}




Line 91: Line 89:
<jmol>
<jmol>
   <jmolCheckbox>
   <jmolCheckbox>
     <scriptWhenChecked>display displayed or "ATP"</scriptWhenChecked>
     <scriptWhenChecked>display displayed or ATP</scriptWhenChecked>
     <scriptWhenUnchecked>hide "ATP" or hidden</scriptWhenUnchecked>
     <scriptWhenUnchecked>hide ATP or hidden</scriptWhenUnchecked>
     <checked>true</checked>  
     <checked>true</checked>  
     <text> "ATP molecule" </text>
     <text> ATP molecule </text>
   </jmolCheckbox>
   </jmolCheckbox>
</jmol>
</jmol>
Troubleshooting:
Named parameter Name: "ATP molecule"
Named parameter Selection: "ATP"
Named parameter Initial: {{{Initial|true}}}


===Radio button===
===Radio button===
Line 187: Line 176:
{{subst:Store view buttons}}</nowiki>
{{subst:Store view buttons}}</nowiki>


For more than one view, just add another pair of buttons and change view1 to view2.
For more than one view, just add another pair of buttons and change view1 to view2. For a more elaborate example how to use buttons to dock a ligand, see [[User:Karsten Theis/Animation course]].


==Button to choose a fixed orientation and view==
==Button to choose a fixed orientation and view==