Light

Contents

Overview

Lighting is important for high-quality shots. PyMOL supports of up to 10 virtual lights. You can turn the lights on/off and also position them where you want (behind the camera).

Light2..Light9 control where the other lights go.

Normal lighting

Light1 moved a bit. Notice how the shadows have changed.

Syntax

# set the light to some position. The 'position'# must be a vector specifying the XYZ location# to put the light.setlight,position# for examplesetlight,[-0.55,-0.70,0.15]

User Hint

Moving lights make for a cool effect; you can make this look better by smoothing out the distances and ranges.

:

One neat trick, for rendering a "sunset" on your protein is to turn off all the lights, then render the scene as you move the light across the scene. The shadows move across the protein based on the light position and it looks like the sun is setting.