Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help
Special pages
SBGrid Resources
SBGrid Consortium
SBGrid Data Bank
Software Webinars
PyMOL Webinar
PyMOL Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
FocalBlur
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Description== This script creates fancy figures by introducing a focal blur to the image. The object at the origin will be in focus. ===Usage=== Load the script using the [[run]] command. Execute the script using PyMOL syntax: <source lang="python"> FocalBlur aperture=2.0,samples=20,ray=1 </source> or using python syntax: <source lang="python"> FocalBlur(aperture=2.0,samples=20,ray=1) </source> For additional options, see the script comments. ===Notes=== * When using raytracing, the image creation will take ''n'' times longer than normal, where ''n'' is the number of samples. * The aperture is related to the aperture on a camera, and is inversely proportional to the f-number. ===Bugs=== * FocalBlur uses the Python Image Library (PIL), a necessary components of PIL is missing in the Windows version of PyMOL * There is a bug when not using ray tracing with the free version of PyMOL ===Examples=== <gallery perrow=3 widths=300 heights=240> Image:FocalBlur_a1.0_r1.png|FocalBlur aperture=1,samples=100,ray=1 Image:FocalBlur_a2.0_r1.png|FocalBlur aperture=2,samples=100,ray=1 Image:FocalBlur_a4.0_r1.png|FocalBlur aperture=4,samples=400,ray=1 Image:FocalBlur_a4.0_r0.png|FocalBlur aperture=4,samples=400,ray=0 Image:Focal_blur _ex6.png Image:Focal blur_ex_ap3.png Image:Focal blur_ex_ap3_mode1.png Image:Focal blur_ex_ap3_mode2.png Image:Focal blur_ex_ap3_mode3.png </gallery>
Summary:
Please note that all contributions to PyMOL Wiki are considered to be released under the GNU Free Documentation License 1.2 (see
PyMOL Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
FocalBlur
(section)
Add topic