{"id":12018,"date":"2024-12-04T15:47:49","date_gmt":"2024-12-04T15:47:49","guid":{"rendered":"https:\/\/www.blopig.com\/blog\/?p=12018"},"modified":"2024-12-04T15:47:49","modified_gmt":"2024-12-04T15:47:49","slug":"making-pretty-pictures-in-pymol-v2","status":"publish","type":"post","link":"https:\/\/www.blopig.com\/blog\/2024\/12\/making-pretty-pictures-in-pymol-v2\/","title":{"rendered":"Making Pretty Pictures in PyMOL v2"},"content":{"rendered":"\n<p>Throughout my PhD I&#8217;ve needed nice PyMOL visualizations, but struggled to quickly and easily make the pictures I wanted. I&#8217;ve used <a href=\"https:\/\/www.blopig.com\/blog\/author\/claire\/\">Claire Marks<\/a>&#8216; blopig post, <a href=\"https:\/\/www.blopig.com\/blog\/2021\/01\/making-pretty-pictures-with-pymol\/\">Making Pretty Pictures in PyMOL<\/a>, <em>many<\/em> times and wanted to expand it with what I&#8217;ve learned to make satisfying visualizations quickly!<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Use scripts<\/h2>\n\n\n\n<p>The most helpful thing I&#8217;ve learned is to use a script to define functions that change settings to a preset you&#8217;re happy with. You can find my script <a href=\"https:\/\/gist.github.com\/kate-fie\/50a749e03e81d15c320f0306150d6f66\">here<\/a>.<\/p>\n\n\n\n<p>To load it into your current PyMOL session:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">run &lt;path_to_pymol_style.py&gt;<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Preset workspace setting<\/h2>\n\n\n\n<p>First thing I like to do in a new session is to first load my <code>pymol_style.py<\/code> and then perform:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">setPretty<\/pre>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p>Default PyMOL style:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/default_pymol.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"625\" height=\"493\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/default_pymol.png?resize=625%2C493&#038;ssl=1\" alt=\"\" class=\"wp-image-12032\" srcset=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/default_pymol.png?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/default_pymol.png?resize=300%2C237&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/default_pymol.png?resize=768%2C606&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/default_pymol.png?resize=624%2C492&amp;ssl=1 624w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p>After setPretty:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/setPretty.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"625\" height=\"493\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/setPretty.png?resize=625%2C493&#038;ssl=1\" alt=\"\" class=\"wp-image-12036\" srcset=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/setPretty.png?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/setPretty.png?resize=300%2C237&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/setPretty.png?resize=768%2C606&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/setPretty.png?resize=624%2C492&amp;ssl=1 624w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/figure>\n<\/div>\n<\/div>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">def setPretty():\n    # Workspace settings\n    cmd.bg_color(\"white\")\n    cmd.set(\"ray_opaque_background\", \"off\")\n    cmd.set(\"orthoscopic\", 0)\n    cmd.set(\"transparency\", 0.5)\n    cmd.set(\"dash_gap\", 0)\n    cmd.set(\"ray_trace_mode\", 1) # normal color + black outline\n    cmd.set(\"antialias\", 3)\n    cmd.set(\"ambient\", 0.5)\n    cmd.set(\"spec_count\", 5)\n    cmd.set(\"shininess\", 50)\n    cmd.set(\"specular\", 1)\n    cmd.set(\"reflect\", 0.1)\n    cmd.space(\"cmyk\")<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Transparency<\/h2>\n\n\n\n<p>Increasing the transparency of non-important features helps what you&#8217;d like the reader to focus on stand out. For example in this binding site, using a higher transparency of the cartoon versus the binding site residues helps them stick out.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># define ligand, binding site residues, and chain\nselect\u00a0ligand,\u00a0resn\u00a0LIG\u00a0and\u00a0chain\u00a0B # change to whatever chain you are working in\nselect\u00a0binding,\u00a0br.\u00a0(ligand\u00a0around\u00a04) # bonds within 4 angstroms of ligand \nselect chainB, chain B\nhide everything, not binding\nshow sticks, binding\nshow sticks, ligand\nshow cartoon, chainB<\/pre>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p><code>set cartoon_transparency, 0.0<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/cartoon_trans_0.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"625\" height=\"493\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/cartoon_trans_0.png?resize=625%2C493&#038;ssl=1\" alt=\"\" class=\"wp-image-12037\" srcset=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/cartoon_trans_0.png?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/cartoon_trans_0.png?resize=300%2C237&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/cartoon_trans_0.png?resize=768%2C606&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/cartoon_trans_0.png?resize=624%2C492&amp;ssl=1 624w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p><code>set cartoon_transparency, 0.6<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/cartoon_trans_0.6.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"625\" height=\"493\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/cartoon_trans_0.6.png?resize=625%2C493&#038;ssl=1\" alt=\"\" class=\"wp-image-12035\" srcset=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/cartoon_trans_0.6.png?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/cartoon_trans_0.6.png?resize=300%2C237&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/cartoon_trans_0.6.png?resize=768%2C606&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/cartoon_trans_0.6.png?resize=624%2C492&amp;ssl=1 624w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p>Also use transparency to show binding site residues underneath a surface.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">hide (hydro and not (elem N+O+S) and binding) # hide non-polar hydrogens\nshow surface, chainB\ncolor gray80, chainB and not ligand<\/pre>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p><code>set transparency, 0.2<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/surface_trans_0.2-2.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"610\" height=\"616\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/surface_trans_0.2-2.png?resize=610%2C616&#038;ssl=1\" alt=\"\" class=\"wp-image-12050\" srcset=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/surface_trans_0.2-2.png?w=610&amp;ssl=1 610w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/surface_trans_0.2-2.png?resize=297%2C300&amp;ssl=1 297w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/surface_trans_0.2-2.png?resize=150%2C150&amp;ssl=1 150w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p><code>set transparency, 0.<\/code>4<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/surface_trans_0.4.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"610\" height=\"616\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/surface_trans_0.4.png?resize=610%2C616&#038;ssl=1\" alt=\"\" class=\"wp-image-12051\" srcset=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/surface_trans_0.4.png?w=610&amp;ssl=1 610w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/surface_trans_0.4.png?resize=297%2C300&amp;ssl=1 297w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/surface_trans_0.4.png?resize=150%2C150&amp;ssl=1 150w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Ball and stick<\/h2>\n\n\n\n<p>I personally like the ball and stick representation of small molecules, and I&#8217;ve defined it in my script going off of <a href=\"https:\/\/gist.github.com\/bobbypaton\/1cdc4784f3fc8374467bae5eb410edef\" data-type=\"link\" data-id=\"https:\/\/gist.github.com\/bobbypaton\/1cdc4784f3fc8374467bae5eb410edef\">Rob Paton&#8217;s pymol_style.py<\/a>, where I use the same <code>BallnStick<\/code> command! I&#8217;ve defined another <code>BallnStickThick<\/code> command along with some other fun colors. <\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p><code>BallnStick ligand<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"625\" height=\"493\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick.png?resize=625%2C493&#038;ssl=1\" alt=\"\" class=\"wp-image-12038\" srcset=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick.png?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick.png?resize=300%2C237&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick.png?resize=768%2C606&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick.png?resize=624%2C492&amp;ssl=1 624w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p><code>BallnStickThick ligand, marine<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick_marine.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"625\" height=\"493\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick_marine.png?resize=625%2C493&#038;ssl=1\" alt=\"\" class=\"wp-image-12039\" srcset=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick_marine.png?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick_marine.png?resize=300%2C237&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick_marine.png?resize=768%2C606&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick_marine.png?resize=624%2C492&amp;ssl=1 624w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/figure>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p><code>BallnStickThick ligand, purpleblue<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick_purpleblue.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"625\" height=\"493\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick_purpleblue.png?resize=625%2C493&#038;ssl=1\" alt=\"\" class=\"wp-image-12040\" srcset=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick_purpleblue.png?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick_purpleblue.png?resize=300%2C237&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick_purpleblue.png?resize=768%2C606&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick_purpleblue.png?resize=624%2C492&amp;ssl=1 624w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p><code>BallnStickThick ligand, orangecream<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick_orangecream.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"625\" height=\"493\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick_orangecream.png?resize=625%2C493&#038;ssl=1\" alt=\"\" class=\"wp-image-12041\" srcset=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick_orangecream.png?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick_orangecream.png?resize=300%2C237&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick_orangecream.png?resize=768%2C606&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/ballnstick_orangecream.png?resize=624%2C492&amp;ssl=1 624w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Lighting<\/h2>\n\n\n\n<p>Another cool thing you can do is use preset Lighting Settings located in the Plugin bar.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p>Rubber setting (and increased ambient value)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/rubber.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"625\" height=\"493\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/rubber.png?resize=625%2C493&#038;ssl=1\" alt=\"\" class=\"wp-image-12042\" srcset=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/rubber.png?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/rubber.png?resize=300%2C237&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/rubber.png?resize=768%2C606&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/rubber.png?resize=624%2C492&amp;ssl=1 624w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p>X-Ray setting with reflect = 1 and light_count = 1<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/xray.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"625\" height=\"493\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/xray.png?resize=625%2C493&#038;ssl=1\" alt=\"\" class=\"wp-image-12043\" srcset=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/xray.png?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/xray.png?resize=300%2C237&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/xray.png?resize=768%2C606&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/xray.png?resize=624%2C492&amp;ssl=1 624w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Focal blur<\/h2>\n\n\n\n<p>The next thing I found was a <a href=\"https:\/\/pymolwiki.org\/index.php\/FocalBlur\">focal blur script <\/a> which has a fun blurring effect.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># https:\/\/pymolwiki.org\/index.php\/FocalBlur and get script!\nrun ~\/pymol_focal_blur.py\nFocalBlur<\/pre>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p><code>FocalBlur samples=20, aperture=2.0<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/focal_blur_2.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"461\" height=\"293\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/focal_blur_2.png?resize=461%2C293&#038;ssl=1\" alt=\"\" class=\"wp-image-12046\" srcset=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/focal_blur_2.png?w=461&amp;ssl=1 461w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/focal_blur_2.png?resize=300%2C191&amp;ssl=1 300w\" sizes=\"auto, (max-width: 461px) 100vw, 461px\" \/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p><code>FocalBlur samples=20, aperture=4.0<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/focal_blur_4.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"461\" height=\"293\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/focal_blur_4.png?resize=461%2C293&#038;ssl=1\" alt=\"\" class=\"wp-image-12047\" srcset=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/focal_blur_4.png?w=461&amp;ssl=1 461w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2024\/12\/focal_blur_4.png?resize=300%2C191&amp;ssl=1 300w\" sizes=\"auto, (max-width: 461px) 100vw, 461px\" \/><\/a><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Resources<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/gist.github.com\/kate-fie\/50a749e03e81d15c320f0306150d6f66\">My pymol_style.py script with previously shown presets!<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.blopig.com\/blog\/2021\/01\/making-pretty-pictures-with-pymol\/\">The original, Making Pretty Pictures in PyMOL<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.youtube.com\/playlist?list=PLUMhYZpMLtanlp_zVde7CWsRr1EnCzAFD\">YouTube videos of PyMOL 101 Tutorials<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/gist.github.com\/bobbypaton\/1cdc4784f3fc8374467bae5eb410edef\">Rob Paton&#8217;s pymol_style.py script<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.blopig.com\/blog\/2023\/10\/tips-tricks-with-pymol\/\">Alissa Hummer&#8217;s blopig post<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/bionerdnotes.wordpress.com\/2018\/11\/12\/getting-high-quality-pictures-in-pymol\/\">BionerdNotes PyMOL post<\/a><\/li>\n<\/ul>\n\n\n\n<p>Happy PyMOL-ing \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Throughout my PhD I&#8217;ve needed nice PyMOL visualizations, but struggled to quickly and easily make the pictures I wanted. I&#8217;ve used Claire Marks&#8216; blopig post, Making Pretty Pictures in PyMOL, many times and wanted to expand it with what I&#8217;ve learned to make satisfying visualizations quickly!<\/p>\n","protected":false},"author":104,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","wikipediapreview_detectlinks":true,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"ngg_post_thumbnail":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[296,14,351,228,201],"tags":[132],"ppma_author":[717],"class_list":["post-12018","post","type-post","status-publish","format-standard","hentry","category-hints-and-tips","category-howto","category-molecular-visualization","category-protein-structure","category-small-molecules","tag-pymol"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"authors":[{"term_id":717,"user_id":104,"is_guest":0,"slug":"kate","display_name":"Kate Fieseler","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/264ae0adbd8e2e58a8d11d4b267a937306804e59ab21d1c7ce911117d9b095e5?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/posts\/12018","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/users\/104"}],"replies":[{"embeddable":true,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/comments?post=12018"}],"version-history":[{"count":4,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/posts\/12018\/revisions"}],"predecessor-version":[{"id":12054,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/posts\/12018\/revisions\/12054"}],"wp:attachment":[{"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/media?parent=12018"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/categories?post=12018"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/tags?post=12018"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=12018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}