I'm having a problem with the routine described a few months ago for rotating the direction of the light source when the picture is rotated for making a stereo pair.

The problem is as follows :

PyMOL>run turn_y_light.py
Traceback (most recent call last):
File "/Applications/PyMOL/Darwin/modules/pymol/parser.py", line 186, in pars
e
    execfile(args[nest][0],pymol_names,pymol_names)
  File "<string>", line 1
     def turn_y_light(rot):
  # assuming "rot" has angle in degrees
  rot_rad = math.pi*rot/180.0
  (X0,Y0,Z0)=cmd.get_setting_tuple("light")[1]
  X1= X0*math.cos(rot_rad) + Z0*math.sin(rot_rad)
  Y1= Y0
  Z1= Z0*math.cos(rot_rad) - X0*math.sin(rot_rad)
  cmd.set("light",[X1,Y1,Z1])
                           ^
 SyntaxError: invalid syntax

Any suggestions as to what I'm doing wrong ?


---------------------------------------------------------------------------
  Laurence H. Pearl

  Section of Structural Biology, Institute of Cancer Research
  Chester Beatty Laboratories,  237 Fulham Road
  London SW3 6JB, UK

  Phone +44-207-970 6045 : Secretary +44-207-970 6046
  FAX   +44-207-970 6051 : E-Mail l.pe...@icr.ac.uk
---------------------------------------------------------------------------
  " Live Simply and do Serious Things .. " - Dorothy Crowfoot Hodgkin
---------------------------------------------------------------------------


Reply via email to