Main Page

From PyMOLWiki
Jump to: navigation, search
hosted by SBGridlogo2.jpg
Welcome to the PyMOL Wiki!
The community-run support site for the PyMOL molecular viewer.
To request a new account, email SBGrid at: accounts (@) sbgrid dot org
Quick Links
Tutorials Table of Contents Commands
Script Library Plugins FAQ
Gallery | Covers PyMOL Cheat Sheet (PDF) Getting Help
News & Updates
Official Release PyMOL v2.5 has been released on May 10, 2021.
Python 3 New Python 3 compatibility guide for scripts and plugins
POSF New PyMOL fellows announced for 2018-2019
Tutorial Plugins Tutorial updated for PyQt5
New Plugin PICv is a new plugin for clustering protein-protein interactions and visualization with available data from PDBe
Selection keywords New polymer.protein and polymer.nucleic selection keywords. Thanks everyone who participated in the poll!
Plugin Update MOLE 2.5 is an updated version of channel analysis software in PyMOL
New Script dssr_block is a wrapper for DSSR (3dna) and creates block-shaped nucleic acid cartoons
Older News See Older News.
Did you know...

Set toggle

== Overview ==

Set_toggle binds a key to switch on and off a setting.

Syntax

set_toggle key, setting

See Set_Key to find a list of key that can be redefined and Settings to find a list of settings. You can also use auto-completion.

Examples

# Associates "F1" to grid_mode setting
set_toggle F1, grid_mode

Script

<source lang="python">

  1. @AUTHOR: Joseph ANDRE
  2. Copyright (c) 2011, Joseph ANDRE
  3. All rights reserved.
  4. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
  5. conditions are met:
  6. * Redistributions of source code must retain the above copyright notice, this list of conditions and the following
  7. * disclaimer.
  8. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
  9. * disclaimer in the documentation and/or other materials provided with the distribution.
  10. * Neither the ..→
A Random PyMOL-generated Cover. See Covers.