$ global name=scenes6
$ scene1 pdb_code=1w0t,1w0u

! fit_trajectory used with molecules, selection, molecule_ref & selection_ref
! allows to make dynamic alignments between molecules (systems), as long as
! size of the two selections are identical. 
!
! WARNING !
! 
! if translate/rotate/zoom is first used on a selected molecule (with molecules=...), 
! the systems now have different camera settings, and the result of fitting 
! will appear errorneous (same coordinates, different camera angles)

# scene1
do_nothing t=1s
rotate axis=x t=2s angle=90
highlight molecules=1 selection="residue 111 to 115" color=1 style=vdw mode=u material=diffuse
{fit_trajectory molecules=0 selection_ref="residue 111 to 115 and name P C1'" t=2s molecule_ref=1 selection="residue 105 to 109 and name P C1'";
highlight molecules=0 selection="residue 105 to 109" color=0 style=vdw material=diffuse}
{fit_trajectory molecules=0 selection_ref="residue 111 to 115 and name P C1'" t=2s molecule_ref=1 selection="residue 107 to 111 and name P C1'";
highlight molecules=0 selection="residue 107 to 111" color=0 style=vdw material=diffuse}
{fit_trajectory molecules=0 selection_ref="residue 111 to 115 and name P C1'" t=2s molecule_ref=1 selection="residue 109 to 113 and name P C1'";
highlight molecules=0 selection="residue 109 to 113" color=0 style=vdw material=diffuse}
{fit_trajectory molecules=0 selection_ref="residue 111 to 115 and name P C1'" t=2s molecule_ref=1 selection="residue 111 to 115 and name P C1'";
highlight molecules=0 selection="residue 111 to 115" color=0 style=vdw material=diffuse}
{fit_trajectory molecules=0 selection_ref="residue 111 to 115 and name P C1'" t=2s molecule_ref=1 selection="residue 113 to 117 and name P C1'";
highlight molecules=0 selection="residue 113 to 117" color=0 style=vdw material=diffuse}
do_nothing t=2s

